@mastra/inngest 0.0.0-feat-mcp-embedded-docs-tools-clean-20260108110334 → 0.0.0-feat-mcp-embedded-docs-tools-clean-20260108124346

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/index.js CHANGED
@@ -1269,6 +1269,7 @@ var InngestWorkflow = class _InngestWorkflow extends Workflow {
1269
1269
  });
1270
1270
  }
1271
1271
  const pubsub = new InngestPubSub(this.inngest, this.id, publish);
1272
+ const requestContext = new RequestContext(Object.entries(event.data.requestContext ?? {}));
1272
1273
  const engine = new InngestExecutionEngine(this.#mastra, step, attempt, this.options);
1273
1274
  const result = await engine.execute({
1274
1275
  workflowId: this.id,
@@ -1280,7 +1281,7 @@ var InngestWorkflow = class _InngestWorkflow extends Workflow {
1280
1281
  initialState,
1281
1282
  pubsub,
1282
1283
  retryConfig: this.retryConfig,
1283
- requestContext: new RequestContext(Object.entries(event.data.requestContext ?? {})),
1284
+ requestContext,
1284
1285
  resume,
1285
1286
  timeTravel,
1286
1287
  perStep,
@@ -1302,7 +1303,19 @@ var InngestWorkflow = class _InngestWorkflow extends Workflow {
1302
1303
  });
1303
1304
  await step.run(`workflow.${this.id}.finalize`, async () => {
1304
1305
  if (result.status !== "paused") {
1305
- await engine.invokeLifecycleCallbacksInternal(result);
1306
+ await engine.invokeLifecycleCallbacksInternal({
1307
+ status: result.status,
1308
+ result: "result" in result ? result.result : void 0,
1309
+ error: "error" in result ? result.error : void 0,
1310
+ steps: result.steps,
1311
+ tripwire: "tripwire" in result ? result.tripwire : void 0,
1312
+ runId,
1313
+ workflowId: this.id,
1314
+ resourceId,
1315
+ input: inputData,
1316
+ requestContext,
1317
+ state: result.state ?? initialState ?? {}
1318
+ });
1306
1319
  }
1307
1320
  if (result.status === "failed") {
1308
1321
  throw new NonRetriableError(`Workflow failed`, {