@mastra/inngest 1.0.0-beta.2 → 1.0.0-beta.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @mastra/inngest
2
2
 
3
+ ## 1.0.0-beta.3
4
+
5
+ ### Patch Changes
6
+
7
+ - - Fix tool suspension throwing error when `outputSchema` is passed to tool during creation ([#10444](https://github.com/mastra-ai/mastra/pull/10444))
8
+ - Pass `suspendSchema` and `resumeSchema` from tool into step created when creating step from tool
9
+ - Updated dependencies [[`21a15de`](https://github.com/mastra-ai/mastra/commit/21a15de369fe82aac26bb642ed7be73505475e8b), [`feb7ee4`](https://github.com/mastra-ai/mastra/commit/feb7ee4d09a75edb46c6669a3beaceec78811747), [`b0e2ea5`](https://github.com/mastra-ai/mastra/commit/b0e2ea5b52c40fae438b9e2f7baee6f0f89c5442), [`c456e01`](https://github.com/mastra-ai/mastra/commit/c456e0149e3c176afcefdbd9bb1d2c5917723725), [`ab035c2`](https://github.com/mastra-ai/mastra/commit/ab035c2ef6d8cc7bb25f06f1a38508bd9e6f126b), [`1a46a56`](https://github.com/mastra-ai/mastra/commit/1a46a566f45a3fcbadc1cf36bf86d351f264bfa3), [`3cf540b`](https://github.com/mastra-ai/mastra/commit/3cf540b9fbfea8f4fc8d3a2319a4e6c0b0cbfd52), [`1c6ce51`](https://github.com/mastra-ai/mastra/commit/1c6ce51f875915ab57fd36873623013699a2a65d), [`898a972`](https://github.com/mastra-ai/mastra/commit/898a9727d286c2510d6b702dfd367e6aaf5c6b0f), [`a97003a`](https://github.com/mastra-ai/mastra/commit/a97003aa1cf2f4022a41912324a1e77263b326b8), [`ccc141e`](https://github.com/mastra-ai/mastra/commit/ccc141ed27da0abc3a3fc28e9e5128152e8e37f4), [`fe3b897`](https://github.com/mastra-ai/mastra/commit/fe3b897c2ccbcd2b10e81b099438c7337feddf89), [`00123ba`](https://github.com/mastra-ai/mastra/commit/00123ba96dc9e5cd0b110420ebdba56d8f237b25), [`29c4309`](https://github.com/mastra-ai/mastra/commit/29c4309f818b24304c041bcb4a8f19b5f13f6b62), [`16785ce`](https://github.com/mastra-ai/mastra/commit/16785ced928f6f22638f4488cf8a125d99211799), [`de8239b`](https://github.com/mastra-ai/mastra/commit/de8239bdcb1d8c0cfa06da21f1569912a66bbc8a), [`b5e6cd7`](https://github.com/mastra-ai/mastra/commit/b5e6cd77fc8c8e64e0494c1d06cee3d84e795d1e), [`3759cb0`](https://github.com/mastra-ai/mastra/commit/3759cb064935b5f74c65ac2f52a1145f7352899d), [`651e772`](https://github.com/mastra-ai/mastra/commit/651e772eb1475fb13e126d3fcc01751297a88214), [`b61b93f`](https://github.com/mastra-ai/mastra/commit/b61b93f9e058b11dd2eec169853175d31dbdd567), [`bae33d9`](https://github.com/mastra-ai/mastra/commit/bae33d91a63fbb64d1e80519e1fc1acaed1e9013), [`c0b731f`](https://github.com/mastra-ai/mastra/commit/c0b731fb27d712dc8582e846df5c0332a6a0c5ba), [`43ca8f2`](https://github.com/mastra-ai/mastra/commit/43ca8f2c7334851cc7b4d3d2f037d8784bfbdd5f), [`2ca67cc`](https://github.com/mastra-ai/mastra/commit/2ca67cc3bb1f6a617353fdcab197d9efebe60d6f), [`9e67002`](https://github.com/mastra-ai/mastra/commit/9e67002b52c9be19936c420a489dbee9c5fd6a78), [`35edc49`](https://github.com/mastra-ai/mastra/commit/35edc49ac0556db609189641d6341e76771b81fc)]:
10
+ - @mastra/core@1.0.0-beta.5
11
+
3
12
  ## 1.0.0-beta.2
4
13
 
5
14
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -834,6 +834,8 @@ function createStep(params, agentOptions) {
834
834
  description: params.description,
835
835
  inputSchema: params.inputSchema,
836
836
  outputSchema: params.outputSchema,
837
+ suspendSchema: params.suspendSchema,
838
+ resumeSchema: params.resumeSchema,
837
839
  execute: async ({
838
840
  inputData,
839
841
  mastra,
@@ -850,9 +852,9 @@ function createStep(params, agentOptions) {
850
852
  mastra,
851
853
  requestContext,
852
854
  tracingContext,
853
- resumeData,
854
855
  workflow: {
855
856
  runId,
857
+ resumeData,
856
858
  suspend,
857
859
  workflowId,
858
860
  state,
@@ -1389,6 +1391,13 @@ var InngestExecutionEngine = class extends workflows.DefaultExecutionEngine {
1389
1391
  getInitData: () => stepResults?.input,
1390
1392
  getStepResult: workflows.getStepResult.bind(this, stepResults),
1391
1393
  suspend: async (suspendPayload, suspendOptions) => {
1394
+ const { suspendData, validationError: validationError2 } = await workflows.validateStepSuspendData({
1395
+ suspendData: suspendPayload,
1396
+ step
1397
+ });
1398
+ if (validationError2) {
1399
+ throw validationError2;
1400
+ }
1392
1401
  executionContext.suspendedPaths[step.id] = executionContext.executionPath;
1393
1402
  if (suspendOptions?.resumeLabel) {
1394
1403
  const resumeLabel = Array.isArray(suspendOptions.resumeLabel) ? suspendOptions.resumeLabel : [suspendOptions.resumeLabel];
@@ -1399,7 +1408,7 @@ var InngestExecutionEngine = class extends workflows.DefaultExecutionEngine {
1399
1408
  };
1400
1409
  }
1401
1410
  }
1402
- suspended = { payload: suspendPayload };
1411
+ suspended = { payload: suspendData };
1403
1412
  },
1404
1413
  bail: (result2) => {
1405
1414
  bailed = { payload: result2 };