@mastra/inngest 1.11.1 → 1.11.2-alpha.0

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.
@@ -2621,6 +2621,7 @@ function createInngestDurableAgenticWorkflow(options) {
2621
2621
  requestContext,
2622
2622
  tracingContext,
2623
2623
  logger: mastra?.getLogger?.(),
2624
+ messageId: state.messageId,
2624
2625
  outputResult: {
2625
2626
  text: finalText ?? "",
2626
2627
  usage: state.accumulatedUsage,
@@ -2633,16 +2634,17 @@ function createInngestDurableAgenticWorkflow(options) {
2633
2634
  finalText = finishResult.outputText;
2634
2635
  }
2635
2636
  const tripwire = finishResult.tripwire;
2637
+ if (pubsub && !tripwire) for (const chunk of finishResult.structuredOutputChunks ?? []) await (0, _mastra_core_agent_durable.emitChunkEvent)(pubsub, state.runId, {
2638
+ ...chunk,
2639
+ runId: state.runId
2640
+ });
2641
+ if (pubsub) for (const chunk of finishResult.outputResultChunks ?? []) await (0, _mastra_core_agent_durable.emitChunkEvent)(pubsub, state.runId, chunk, true);
2636
2642
  if (tripwire && pubsub) await (0, _mastra_core_agent_durable.emitChunkEvent)(pubsub, state.runId, {
2637
2643
  type: "tripwire",
2638
2644
  runId: state.runId,
2639
2645
  from: _mastra_core_stream.ChunkFrom.AGENT,
2640
2646
  payload: tripwire
2641
2647
  });
2642
- if (pubsub && !tripwire) for (const chunk of finishResult.structuredOutputChunks ?? []) await (0, _mastra_core_agent_durable.emitChunkEvent)(pubsub, state.runId, {
2643
- ...chunk,
2644
- runId: state.runId
2645
- });
2646
2648
  if (pubsub && !tripwire && finishResult.titleForStream) {
2647
2649
  const title = await finishResult.titleForStream;
2648
2650
  if (title && initData.state?.threadId) await (0, _mastra_core_agent_durable.emitChunkEvent)(pubsub, state.runId, {
@@ -4826,4 +4828,4 @@ Object.defineProperty(exports, "serve", {
4826
4828
  }
4827
4829
  });
4828
4830
 
4829
- //# sourceMappingURL=src-BFLWFGPN.cjs.map
4831
+ //# sourceMappingURL=src-SSvfovM3.cjs.map