@mastra/inngest 0.0.0-tool-call-parts-20250630193309 → 0.0.0-transpile-packages-20250730132657

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,21 +1,243 @@
1
1
  # @mastra/inngest
2
2
 
3
- ## 0.0.0-tool-call-parts-20250630193309
3
+ ## 0.0.0-transpile-packages-20250730132657
4
4
 
5
5
  ### Patch Changes
6
6
 
7
+ - Updated dependencies [3f89307]
8
+ - Updated dependencies [9d49408]
9
+ - Updated dependencies [7a7754f]
10
+ - Updated dependencies [fc92d80]
11
+ - Updated dependencies [3546c40]
12
+ - @mastra/core@0.0.0-transpile-packages-20250730132657
13
+
14
+ ## 0.11.6
15
+
16
+ ### Patch Changes
17
+
18
+ - ce088f5: Update all peerdeps to latest core
19
+ - @mastra/core@0.11.1
20
+
21
+ ## 0.11.5
22
+
23
+ ### Patch Changes
24
+
25
+ - a723d69: Pass workflowId through
26
+ - Updated dependencies [f248d53]
27
+ - Updated dependencies [2affc57]
28
+ - Updated dependencies [66e13e3]
29
+ - Updated dependencies [edd9482]
30
+ - Updated dependencies [18344d7]
31
+ - Updated dependencies [9d372c2]
32
+ - Updated dependencies [40c2525]
33
+ - Updated dependencies [e473f27]
34
+ - Updated dependencies [032cb66]
35
+ - Updated dependencies [703ac71]
36
+ - Updated dependencies [a723d69]
37
+ - Updated dependencies [7827943]
38
+ - Updated dependencies [5889a31]
39
+ - Updated dependencies [bf1e7e7]
40
+ - Updated dependencies [65e3395]
41
+ - Updated dependencies [4933192]
42
+ - Updated dependencies [d1c77a4]
43
+ - Updated dependencies [bea9dd1]
44
+ - Updated dependencies [dcd4802]
45
+ - Updated dependencies [cbddd18]
46
+ - Updated dependencies [7ba91fa]
47
+ - @mastra/core@0.11.0
48
+
49
+ ## 0.11.5-alpha.0
50
+
51
+ ### Patch Changes
52
+
53
+ - a723d69: Pass workflowId through
54
+ - Updated dependencies [f248d53]
55
+ - Updated dependencies [2affc57]
56
+ - Updated dependencies [66e13e3]
57
+ - Updated dependencies [edd9482]
58
+ - Updated dependencies [18344d7]
59
+ - Updated dependencies [9d372c2]
60
+ - Updated dependencies [40c2525]
61
+ - Updated dependencies [e473f27]
62
+ - Updated dependencies [032cb66]
63
+ - Updated dependencies [703ac71]
64
+ - Updated dependencies [a723d69]
65
+ - Updated dependencies [5889a31]
66
+ - Updated dependencies [65e3395]
67
+ - Updated dependencies [4933192]
68
+ - Updated dependencies [d1c77a4]
69
+ - Updated dependencies [bea9dd1]
70
+ - Updated dependencies [dcd4802]
71
+ - Updated dependencies [7ba91fa]
72
+ - @mastra/core@0.11.0-alpha.2
73
+
74
+ ## 0.11.4
75
+
76
+ ### Patch Changes
77
+
78
+ - 0b56518: Ensure removed runtimeContext values are not saved in snapshot
79
+ - Updated dependencies [0b56518]
80
+ - Updated dependencies [db5cc15]
81
+ - Updated dependencies [2ba5b76]
82
+ - Updated dependencies [5237998]
83
+ - Updated dependencies [c3a30de]
84
+ - Updated dependencies [37c1acd]
85
+ - Updated dependencies [1aa60b1]
86
+ - Updated dependencies [89ec9d4]
87
+ - Updated dependencies [cf3a184]
88
+ - Updated dependencies [d6bfd60]
89
+ - Updated dependencies [626b0f4]
90
+ - Updated dependencies [c22a91f]
91
+ - Updated dependencies [f7403ab]
92
+ - Updated dependencies [6c89d7f]
93
+ - @mastra/core@0.10.15
94
+
95
+ ## 0.11.4-alpha.0
96
+
97
+ ### Patch Changes
98
+
99
+ - 0b56518: Ensure removed runtimeContext values are not saved in snapshot
100
+ - Updated dependencies [0b56518]
101
+ - Updated dependencies [2ba5b76]
102
+ - Updated dependencies [c3a30de]
103
+ - Updated dependencies [cf3a184]
104
+ - Updated dependencies [d6bfd60]
105
+ - @mastra/core@0.10.15-alpha.1
106
+
107
+ ## 0.11.3
108
+
109
+ ### Patch Changes
110
+
111
+ - 515488a: dependencies updates:
112
+ - Updated dependency [`inngest@^3.39.2` ↗︎](https://www.npmjs.com/package/inngest/v/3.39.2) (from `^3.39.1`, in `dependencies`)
113
+ - defb5ae: dependencies updates:
114
+ - Updated dependency [`inngest@^3.40.0` ↗︎](https://www.npmjs.com/package/inngest/v/3.40.0) (from `^3.39.2`, in `dependencies`)
115
+ - b790fd1: Ability to pass a function to .sleep()/.sleepUntil()
116
+ - c1cceea: Bump peerdeps of @matra/core
117
+ - Updated dependencies [2873c7f]
118
+ - Updated dependencies [1c1c6a1]
119
+ - Updated dependencies [f8ce2cc]
120
+ - Updated dependencies [8c846b6]
121
+ - Updated dependencies [c7bbf1e]
122
+ - Updated dependencies [8722d53]
123
+ - Updated dependencies [565cc0c]
124
+ - Updated dependencies [b790fd1]
125
+ - Updated dependencies [132027f]
126
+ - Updated dependencies [0c85311]
127
+ - Updated dependencies [d7ed04d]
128
+ - Updated dependencies [cb16baf]
129
+ - Updated dependencies [f36e4f1]
130
+ - Updated dependencies [7f6e403]
131
+ - @mastra/core@0.10.11
132
+
133
+ ## 0.11.3-alpha.3
134
+
135
+ ### Patch Changes
136
+
137
+ - c1cceea: Bump peerdeps of @matra/core
138
+ - @mastra/core@0.10.11-alpha.4
139
+
140
+ ## 0.11.3-alpha.2
141
+
142
+ ### Patch Changes
143
+
144
+ - defb5ae: dependencies updates:
145
+ - Updated dependency [`inngest@^3.40.0` ↗︎](https://www.npmjs.com/package/inngest/v/3.40.0) (from `^3.39.2`, in `dependencies`)
146
+ - Updated dependencies [c7bbf1e]
147
+ - Updated dependencies [8722d53]
148
+ - Updated dependencies [132027f]
149
+ - Updated dependencies [0c85311]
150
+ - Updated dependencies [cb16baf]
151
+ - @mastra/core@0.10.11-alpha.3
152
+
153
+ ## 0.11.3-alpha.1
154
+
155
+ ### Patch Changes
156
+
157
+ - 515488a: dependencies updates:
158
+ - Updated dependency [`inngest@^3.39.2` ↗︎](https://www.npmjs.com/package/inngest/v/3.39.2) (from `^3.39.1`, in `dependencies`)
159
+ - Updated dependencies [7f6e403]
160
+ - @mastra/core@0.10.11-alpha.1
161
+
162
+ ## 0.11.3-alpha.0
163
+
164
+ ### Patch Changes
165
+
166
+ - b790fd1: Ability to pass a function to .sleep()/.sleepUntil()
167
+ - Updated dependencies [f8ce2cc]
168
+ - Updated dependencies [8c846b6]
169
+ - Updated dependencies [b790fd1]
170
+ - Updated dependencies [d7ed04d]
171
+ - Updated dependencies [f36e4f1]
172
+ - @mastra/core@0.10.11-alpha.0
173
+
174
+ ## 0.11.2
175
+
176
+ ### Patch Changes
177
+
178
+ - 48d9738: Fix inngest sleep stream events
179
+ - Updated dependencies [4d3fbdf]
180
+ - @mastra/core@0.10.10
181
+
182
+ ## 0.11.2-alpha.0
183
+
184
+ ### Patch Changes
185
+
186
+ - 48d9738: Fix inngest sleep stream events
187
+ - Updated dependencies [4d3fbdf]
188
+ - @mastra/core@0.10.10-alpha.0
189
+
190
+ ## 0.11.1
191
+
192
+ ### Patch Changes
193
+
194
+ - e423a31: Fix bug where nested workflows would cause Inngest duplicate key error
195
+ - 764f86a: Introduces the runCount property in the execution parameters for the steps execute function
196
+ - 1760a1c: Use workflow stream in playground instead of watch
197
+ - 038e5ae: Add cancel workflow run
198
+ - 81a1b3b: Update peerdeps
199
+ - Updated dependencies [9dda1ac]
200
+ - Updated dependencies [c984582]
201
+ - Updated dependencies [7e801dd]
202
+ - Updated dependencies [a606c75]
203
+ - Updated dependencies [7aa70a4]
204
+ - Updated dependencies [764f86a]
205
+ - Updated dependencies [1760a1c]
206
+ - Updated dependencies [038e5ae]
207
+ - Updated dependencies [7dda16a]
208
+ - Updated dependencies [5ebfcdd]
209
+ - Updated dependencies [b2d0c91]
210
+ - Updated dependencies [4e809ad]
211
+ - Updated dependencies [57929df]
212
+ - Updated dependencies [b7852ed]
213
+ - Updated dependencies [6320a61]
214
+ - @mastra/core@0.10.9
215
+
216
+ ## 0.11.1-alpha.0
217
+
218
+ ### Patch Changes
219
+
220
+ - e423a31: Fix bug where nested workflows would cause Inngest duplicate key error
7
221
  - 764f86a: Introduces the runCount property in the execution parameters for the steps execute function
8
222
  - 1760a1c: Use workflow stream in playground instead of watch
223
+ - 038e5ae: Add cancel workflow run
224
+ - 81a1b3b: Update peerdeps
9
225
  - Updated dependencies [9dda1ac]
226
+ - Updated dependencies [c984582]
10
227
  - Updated dependencies [7e801dd]
228
+ - Updated dependencies [a606c75]
11
229
  - Updated dependencies [7aa70a4]
12
230
  - Updated dependencies [764f86a]
13
231
  - Updated dependencies [1760a1c]
232
+ - Updated dependencies [038e5ae]
14
233
  - Updated dependencies [7dda16a]
15
- - Updated dependencies [d80069a]
234
+ - Updated dependencies [5ebfcdd]
235
+ - Updated dependencies [b2d0c91]
236
+ - Updated dependencies [4e809ad]
16
237
  - Updated dependencies [57929df]
238
+ - Updated dependencies [b7852ed]
17
239
  - Updated dependencies [6320a61]
18
- - @mastra/core@0.0.0-tool-call-parts-20250630193309
240
+ - @mastra/core@0.10.9-alpha.0
19
241
 
20
242
  ## 0.11.0
21
243
 
package/LICENSE.md CHANGED
@@ -1,46 +1,15 @@
1
- # Elastic License 2.0 (ELv2)
1
+ # Apache License 2.0
2
2
 
3
- Copyright (c) 2025 Mastra AI, Inc.
3
+ Copyright (c) 2025 Kepler Software, Inc.
4
4
 
5
- **Acceptance**
6
- By using the software, you agree to all of the terms and conditions below.
5
+ Licensed under the Apache License, Version 2.0 (the "License");
6
+ you may not use this file except in compliance with the License.
7
+ You may obtain a copy of the License at
7
8
 
8
- **Copyright License**
9
- The licensor grants you a non-exclusive, royalty-free, worldwide, non-sublicensable, non-transferable license to use, copy, distribute, make available, and prepare derivative works of the software, in each case subject to the limitations and conditions below
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
10
 
11
- **Limitations**
12
- You may not provide the software to third parties as a hosted or managed service, where the service provides users with access to any substantial set of the features or functionality of the software.
13
-
14
- You may not move, change, disable, or circumvent the license key functionality in the software, and you may not remove or obscure any functionality in the software that is protected by the license key.
15
-
16
- You may not alter, remove, or obscure any licensing, copyright, or other notices of the licensor in the software. Any use of the licensor’s trademarks is subject to applicable law.
17
-
18
- **Patents**
19
- The licensor grants you a license, under any patent claims the licensor can license, or becomes able to license, to make, have made, use, sell, offer for sale, import and have imported the software, in each case subject to the limitations and conditions in this license. This license does not cover any patent claims that you cause to be infringed by modifications or additions to the software. If you or your company make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
20
-
21
- **Notices**
22
- You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms.
23
-
24
- If you modify the software, you must include in any modified copies of the software prominent notices stating that you have modified the software.
25
-
26
- **No Other Rights**
27
- These terms do not imply any licenses other than those expressly granted in these terms.
28
-
29
- **Termination**
30
- If you use the software in violation of these terms, such use is not licensed, and your licenses will automatically terminate. If the licensor provides you with a notice of your violation, and you cease all violation of this license no later than 30 days after you receive that notice, your licenses will be reinstated retroactively. However, if you violate these terms after such reinstatement, any additional violation of these terms will cause your licenses to terminate automatically and permanently.
31
-
32
- **No Liability**
33
- As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.
34
-
35
- **Definitions**
36
- The _licensor_ is the entity offering these terms, and the _software_ is the software the licensor makes available under these terms, including any portion of it.
37
-
38
- _you_ refers to the individual or entity agreeing to these terms.
39
-
40
- _your company_ is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. _control_ means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
41
-
42
- _your licenses_ are all the licenses granted to you for the software under these terms.
43
-
44
- _use_ means anything you do with the software requiring one of your licenses.
45
-
46
- _trademark_ means trademarks, service marks, and similar rights.
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
@@ -1,5 +1,6 @@
1
1
  import type { Agent } from '@mastra/core';
2
2
  import type { BaseContext } from 'inngest';
3
+ import type { ChunkType } from '@mastra/core/workflows';
3
4
  import { ClientOptions } from 'inngest';
4
5
  import { DefaultExecutionEngine } from '@mastra/core/workflows';
5
6
  import type { Emitter } from '@mastra/core/workflows';
@@ -91,9 +92,10 @@ export declare class InngestExecutionEngine extends DefaultExecutionEngine {
91
92
  delay?: number;
92
93
  };
93
94
  runtimeContext: RuntimeContext;
95
+ abortController: AbortController;
94
96
  }): Promise<TOutput>;
95
97
  protected fmtReturnValue<TOutput>(executionSpan: Span | undefined, emitter: Emitter, stepResults: Record<string, StepResult<any, any, any, any>>, lastOutput: StepResult<any, any, any, any>, error?: Error | string): Promise<TOutput>;
96
- superExecuteStep({ workflowId, runId, step, stepResults, executionContext, resume, prevOutput, emitter, runtimeContext, }: {
98
+ superExecuteStep({ workflowId, runId, step, stepResults, executionContext, resume, prevOutput, emitter, abortController, runtimeContext, writableStream, }: {
97
99
  workflowId: string;
98
100
  runId: string;
99
101
  step: Step<string, any, any>;
@@ -105,29 +107,68 @@ export declare class InngestExecutionEngine extends DefaultExecutionEngine {
105
107
  };
106
108
  prevOutput: any;
107
109
  emitter: Emitter;
110
+ abortController: AbortController;
108
111
  runtimeContext: RuntimeContext;
112
+ writableStream?: WritableStream<ChunkType>;
109
113
  }): Promise<StepResult<any, any, any, any>>;
110
- executeSleep({ id, duration }: {
111
- id: string;
112
- duration: number;
114
+ executeSleep({ workflowId, runId, entry, prevOutput, stepResults, emitter, abortController, runtimeContext, writableStream, }: {
115
+ workflowId: string;
116
+ runId: string;
117
+ serializedStepGraph: SerializedStepFlowEntry[];
118
+ entry: {
119
+ type: 'sleep';
120
+ id: string;
121
+ duration?: number;
122
+ fn?: ExecuteFunction<any, any, any, any, InngestEngineType>;
123
+ };
124
+ prevStep: StepFlowEntry;
125
+ prevOutput: any;
126
+ stepResults: Record<string, StepResult<any, any, any, any>>;
127
+ resume?: {
128
+ steps: string[];
129
+ stepResults: Record<string, StepResult<any, any, any, any>>;
130
+ resumePayload: any;
131
+ resumePath: number[];
132
+ };
133
+ executionContext: ExecutionContext;
134
+ emitter: Emitter;
135
+ abortController: AbortController;
136
+ runtimeContext: RuntimeContext;
137
+ writableStream?: WritableStream<ChunkType>;
138
+ }): Promise<void>;
139
+ executeSleepUntil({ workflowId, runId, entry, prevOutput, stepResults, emitter, abortController, runtimeContext, writableStream, }: {
140
+ workflowId: string;
141
+ runId: string;
142
+ serializedStepGraph: SerializedStepFlowEntry[];
143
+ entry: {
144
+ type: 'sleepUntil';
145
+ id: string;
146
+ date?: Date;
147
+ fn?: ExecuteFunction<any, any, any, any, InngestEngineType>;
148
+ };
149
+ prevStep: StepFlowEntry;
150
+ prevOutput: any;
151
+ stepResults: Record<string, StepResult<any, any, any, any>>;
152
+ resume?: {
153
+ steps: string[];
154
+ stepResults: Record<string, StepResult<any, any, any, any>>;
155
+ resumePayload: any;
156
+ resumePath: number[];
157
+ };
158
+ executionContext: ExecutionContext;
159
+ emitter: Emitter;
160
+ abortController: AbortController;
161
+ runtimeContext: RuntimeContext;
162
+ writableStream?: WritableStream<ChunkType>;
113
163
  }): Promise<void>;
114
164
  executeWaitForEvent({ event, timeout }: {
115
165
  event: string;
116
166
  timeout?: number;
117
167
  }): Promise<any>;
118
- executeStep({ step, stepResults, executionContext, resume, prevOutput, emitter, runtimeContext, }: {
168
+ executeStep({ step, stepResults, executionContext, resume, prevOutput, emitter, abortController, runtimeContext, writableStream, }: {
119
169
  step: Step<string, any, any>;
120
170
  stepResults: Record<string, StepResult<any, any, any, any>>;
121
- executionContext: {
122
- workflowId: string;
123
- runId: string;
124
- executionPath: number[];
125
- suspendedPaths: Record<string, number[]>;
126
- retryConfig: {
127
- attempts: number;
128
- delay: number;
129
- };
130
- };
171
+ executionContext: ExecutionContext;
131
172
  resume?: {
132
173
  steps: string[];
133
174
  resumePayload: any;
@@ -135,7 +176,9 @@ export declare class InngestExecutionEngine extends DefaultExecutionEngine {
135
176
  };
136
177
  prevOutput: any;
137
178
  emitter: Emitter;
179
+ abortController: AbortController;
138
180
  runtimeContext: RuntimeContext;
181
+ writableStream?: WritableStream<ChunkType>;
139
182
  }): Promise<StepResult<any, any, any, any>>;
140
183
  persistStepUpdate({ workflowId, runId, stepResults, executionContext, serializedStepGraph, workflowStatus, result, error, }: {
141
184
  workflowId: string;
@@ -146,8 +189,9 @@ export declare class InngestExecutionEngine extends DefaultExecutionEngine {
146
189
  workflowStatus: 'success' | 'failed' | 'suspended' | 'running';
147
190
  result?: Record<string, any>;
148
191
  error?: string | Error;
192
+ runtimeContext: RuntimeContext;
149
193
  }): Promise<void>;
150
- executeConditional({ workflowId, runId, entry, prevOutput, prevStep, stepResults, serializedStepGraph, resume, executionContext, emitter, runtimeContext, }: {
194
+ executeConditional({ workflowId, runId, entry, prevOutput, prevStep, stepResults, serializedStepGraph, resume, executionContext, emitter, abortController, runtimeContext, writableStream, }: {
151
195
  workflowId: string;
152
196
  runId: string;
153
197
  entry: {
@@ -167,7 +211,9 @@ export declare class InngestExecutionEngine extends DefaultExecutionEngine {
167
211
  };
168
212
  executionContext: ExecutionContext;
169
213
  emitter: Emitter;
214
+ abortController: AbortController;
170
215
  runtimeContext: RuntimeContext;
216
+ writableStream?: WritableStream<ChunkType>;
171
217
  }): Promise<StepResult<any, any, any, any>>;
172
218
  }
173
219
 
@@ -191,6 +237,7 @@ export declare class InngestRun<TEngineType = InngestEngineType, TSteps extends
191
237
  getRuns(eventId: string): Promise<any>;
192
238
  getRunOutput(eventId: string): Promise<any>;
193
239
  sendEvent(event: string, data: any): Promise<void>;
240
+ cancel(): Promise<void>;
194
241
  start({ inputData, }: {
195
242
  inputData?: z.infer<TInput>;
196
243
  runtimeContext?: RuntimeContext;
@@ -1,5 +1,6 @@
1
1
  import type { Agent } from '@mastra/core';
2
2
  import type { BaseContext } from 'inngest';
3
+ import type { ChunkType } from '@mastra/core/workflows';
3
4
  import { ClientOptions } from 'inngest';
4
5
  import { DefaultExecutionEngine } from '@mastra/core/workflows';
5
6
  import type { Emitter } from '@mastra/core/workflows';
@@ -91,9 +92,10 @@ export declare class InngestExecutionEngine extends DefaultExecutionEngine {
91
92
  delay?: number;
92
93
  };
93
94
  runtimeContext: RuntimeContext;
95
+ abortController: AbortController;
94
96
  }): Promise<TOutput>;
95
97
  protected fmtReturnValue<TOutput>(executionSpan: Span | undefined, emitter: Emitter, stepResults: Record<string, StepResult<any, any, any, any>>, lastOutput: StepResult<any, any, any, any>, error?: Error | string): Promise<TOutput>;
96
- superExecuteStep({ workflowId, runId, step, stepResults, executionContext, resume, prevOutput, emitter, runtimeContext, }: {
98
+ superExecuteStep({ workflowId, runId, step, stepResults, executionContext, resume, prevOutput, emitter, abortController, runtimeContext, writableStream, }: {
97
99
  workflowId: string;
98
100
  runId: string;
99
101
  step: Step<string, any, any>;
@@ -105,29 +107,68 @@ export declare class InngestExecutionEngine extends DefaultExecutionEngine {
105
107
  };
106
108
  prevOutput: any;
107
109
  emitter: Emitter;
110
+ abortController: AbortController;
108
111
  runtimeContext: RuntimeContext;
112
+ writableStream?: WritableStream<ChunkType>;
109
113
  }): Promise<StepResult<any, any, any, any>>;
110
- executeSleep({ id, duration }: {
111
- id: string;
112
- duration: number;
114
+ executeSleep({ workflowId, runId, entry, prevOutput, stepResults, emitter, abortController, runtimeContext, writableStream, }: {
115
+ workflowId: string;
116
+ runId: string;
117
+ serializedStepGraph: SerializedStepFlowEntry[];
118
+ entry: {
119
+ type: 'sleep';
120
+ id: string;
121
+ duration?: number;
122
+ fn?: ExecuteFunction<any, any, any, any, InngestEngineType>;
123
+ };
124
+ prevStep: StepFlowEntry;
125
+ prevOutput: any;
126
+ stepResults: Record<string, StepResult<any, any, any, any>>;
127
+ resume?: {
128
+ steps: string[];
129
+ stepResults: Record<string, StepResult<any, any, any, any>>;
130
+ resumePayload: any;
131
+ resumePath: number[];
132
+ };
133
+ executionContext: ExecutionContext;
134
+ emitter: Emitter;
135
+ abortController: AbortController;
136
+ runtimeContext: RuntimeContext;
137
+ writableStream?: WritableStream<ChunkType>;
138
+ }): Promise<void>;
139
+ executeSleepUntil({ workflowId, runId, entry, prevOutput, stepResults, emitter, abortController, runtimeContext, writableStream, }: {
140
+ workflowId: string;
141
+ runId: string;
142
+ serializedStepGraph: SerializedStepFlowEntry[];
143
+ entry: {
144
+ type: 'sleepUntil';
145
+ id: string;
146
+ date?: Date;
147
+ fn?: ExecuteFunction<any, any, any, any, InngestEngineType>;
148
+ };
149
+ prevStep: StepFlowEntry;
150
+ prevOutput: any;
151
+ stepResults: Record<string, StepResult<any, any, any, any>>;
152
+ resume?: {
153
+ steps: string[];
154
+ stepResults: Record<string, StepResult<any, any, any, any>>;
155
+ resumePayload: any;
156
+ resumePath: number[];
157
+ };
158
+ executionContext: ExecutionContext;
159
+ emitter: Emitter;
160
+ abortController: AbortController;
161
+ runtimeContext: RuntimeContext;
162
+ writableStream?: WritableStream<ChunkType>;
113
163
  }): Promise<void>;
114
164
  executeWaitForEvent({ event, timeout }: {
115
165
  event: string;
116
166
  timeout?: number;
117
167
  }): Promise<any>;
118
- executeStep({ step, stepResults, executionContext, resume, prevOutput, emitter, runtimeContext, }: {
168
+ executeStep({ step, stepResults, executionContext, resume, prevOutput, emitter, abortController, runtimeContext, writableStream, }: {
119
169
  step: Step<string, any, any>;
120
170
  stepResults: Record<string, StepResult<any, any, any, any>>;
121
- executionContext: {
122
- workflowId: string;
123
- runId: string;
124
- executionPath: number[];
125
- suspendedPaths: Record<string, number[]>;
126
- retryConfig: {
127
- attempts: number;
128
- delay: number;
129
- };
130
- };
171
+ executionContext: ExecutionContext;
131
172
  resume?: {
132
173
  steps: string[];
133
174
  resumePayload: any;
@@ -135,7 +176,9 @@ export declare class InngestExecutionEngine extends DefaultExecutionEngine {
135
176
  };
136
177
  prevOutput: any;
137
178
  emitter: Emitter;
179
+ abortController: AbortController;
138
180
  runtimeContext: RuntimeContext;
181
+ writableStream?: WritableStream<ChunkType>;
139
182
  }): Promise<StepResult<any, any, any, any>>;
140
183
  persistStepUpdate({ workflowId, runId, stepResults, executionContext, serializedStepGraph, workflowStatus, result, error, }: {
141
184
  workflowId: string;
@@ -146,8 +189,9 @@ export declare class InngestExecutionEngine extends DefaultExecutionEngine {
146
189
  workflowStatus: 'success' | 'failed' | 'suspended' | 'running';
147
190
  result?: Record<string, any>;
148
191
  error?: string | Error;
192
+ runtimeContext: RuntimeContext;
149
193
  }): Promise<void>;
150
- executeConditional({ workflowId, runId, entry, prevOutput, prevStep, stepResults, serializedStepGraph, resume, executionContext, emitter, runtimeContext, }: {
194
+ executeConditional({ workflowId, runId, entry, prevOutput, prevStep, stepResults, serializedStepGraph, resume, executionContext, emitter, abortController, runtimeContext, writableStream, }: {
151
195
  workflowId: string;
152
196
  runId: string;
153
197
  entry: {
@@ -167,7 +211,9 @@ export declare class InngestExecutionEngine extends DefaultExecutionEngine {
167
211
  };
168
212
  executionContext: ExecutionContext;
169
213
  emitter: Emitter;
214
+ abortController: AbortController;
170
215
  runtimeContext: RuntimeContext;
216
+ writableStream?: WritableStream<ChunkType>;
171
217
  }): Promise<StepResult<any, any, any, any>>;
172
218
  }
173
219
 
@@ -191,6 +237,7 @@ export declare class InngestRun<TEngineType = InngestEngineType, TSteps extends
191
237
  getRuns(eventId: string): Promise<any>;
192
238
  getRunOutput(eventId: string): Promise<any>;
193
239
  sendEvent(event: string, data: any): Promise<void>;
240
+ cancel(): Promise<void>;
194
241
  start({ inputData, }: {
195
242
  inputData?: z.infer<TInput>;
196
243
  runtimeContext?: RuntimeContext;