@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.
- package/dist/connect.cjs +1 -1
- package/dist/connect.js +1 -1
- package/dist/durable-agent/create-inngest-agentic-workflow.d.ts +1 -1
- package/dist/durable-agent/create-inngest-agentic-workflow.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/run.d.ts +1 -1
- package/dist/run.d.ts.map +1 -1
- package/dist/{src-BdUtmnY0.js → src-BS8BwrvL.js} +7 -5
- package/dist/src-BS8BwrvL.js.map +1 -0
- package/dist/{src-BFLWFGPN.cjs → src-SSvfovM3.cjs} +7 -5
- package/dist/src-SSvfovM3.cjs.map +1 -0
- package/dist/workflow.d.ts +1 -1
- package/dist/workflow.d.ts.map +1 -1
- package/package.json +6 -6
- package/dist/src-BFLWFGPN.cjs.map +0 -1
- package/dist/src-BdUtmnY0.js.map +0 -1
|
@@ -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-
|
|
4831
|
+
//# sourceMappingURL=src-SSvfovM3.cjs.map
|