@mastra/inngest 1.8.1 → 1.8.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/CHANGELOG.md +9 -0
- package/dist/{chunk-YACLO5I5.cjs → chunk-O67FVVSO.cjs} +8 -3
- package/dist/chunk-O67FVVSO.cjs.map +1 -0
- package/dist/{chunk-6AX2K2MQ.js → chunk-YGGGKCAH.js} +8 -3
- package/dist/chunk-YGGGKCAH.js.map +1 -0
- package/dist/connect.cjs +2 -2
- package/dist/connect.js +1 -1
- package/dist/durable-agent/create-inngest-agent.d.ts +14 -8
- package/dist/durable-agent/create-inngest-agent.d.ts.map +1 -1
- package/dist/execution-engine.d.ts +1 -0
- package/dist/execution-engine.d.ts.map +1 -1
- package/dist/index.cjs +18 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/package.json +11 -11
- package/dist/chunk-6AX2K2MQ.js.map +0 -1
- package/dist/chunk-YACLO5I5.cjs.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { InngestPubSub, InngestWorkflow, collectInngestFunctions } from './chunk-
|
|
2
|
-
export { InngestExecutionEngine, InngestPubSub, InngestRun, InngestWorkflow, connect } from './chunk-
|
|
1
|
+
import { InngestPubSub, InngestWorkflow, collectInngestFunctions } from './chunk-YGGGKCAH.js';
|
|
2
|
+
export { InngestExecutionEngine, InngestPubSub, InngestRun, InngestWorkflow, connect } from './chunk-YGGGKCAH.js';
|
|
3
3
|
import { MessageList, Agent, TripWire } from '@mastra/core/agent';
|
|
4
4
|
import { MastraError, ErrorDomain, ErrorCategory } from '@mastra/core/error';
|
|
5
5
|
import { InternalSpans, EntityType, SpanType } from '@mastra/core/observability';
|
|
@@ -351,7 +351,7 @@ function createInngestAgent(options) {
|
|
|
351
351
|
inputData: workflowInput,
|
|
352
352
|
runId,
|
|
353
353
|
resourceId: workflowInput.state?.resourceId,
|
|
354
|
-
requestContext: {},
|
|
354
|
+
requestContext: workflowInput.requestContextEntries ?? {},
|
|
355
355
|
tracingOptions
|
|
356
356
|
}
|
|
357
357
|
});
|
|
@@ -478,9 +478,9 @@ function createInngestAgent(options) {
|
|
|
478
478
|
finalizeGlobalRegistry();
|
|
479
479
|
}
|
|
480
480
|
},
|
|
481
|
-
onError: async (
|
|
481
|
+
onError: async (errorArg) => {
|
|
482
482
|
try {
|
|
483
|
-
await streamOptions?.onError?.(
|
|
483
|
+
await streamOptions?.onError?.(errorArg);
|
|
484
484
|
} finally {
|
|
485
485
|
finalizeGlobalRegistry();
|
|
486
486
|
}
|
|
@@ -603,9 +603,9 @@ function createInngestAgent(options) {
|
|
|
603
603
|
finalizeResumeRegistry();
|
|
604
604
|
}
|
|
605
605
|
},
|
|
606
|
-
onError: async (
|
|
606
|
+
onError: async (errorArg) => {
|
|
607
607
|
try {
|
|
608
|
-
await resumeOptions?.onError?.(
|
|
608
|
+
await resumeOptions?.onError?.(errorArg);
|
|
609
609
|
} finally {
|
|
610
610
|
finalizeResumeRegistry();
|
|
611
611
|
}
|
|
@@ -636,7 +636,7 @@ function createInngestAgent(options) {
|
|
|
636
636
|
initialState: snapshot?.value ?? {},
|
|
637
637
|
runId,
|
|
638
638
|
resourceId: resumeOptions?.resourceId,
|
|
639
|
-
requestContext: {},
|
|
639
|
+
requestContext: snapshot?.requestContext ?? {},
|
|
640
640
|
stepResults: snapshot?.context,
|
|
641
641
|
resume: {
|
|
642
642
|
steps,
|