@mastra/inngest 0.0.0-vnext-inngest-20250508110322 → 0.0.0-vnext-inngest-20250508111904
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 +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +4 -4
- package/src/index.ts +14 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @mastra/inngest
|
|
2
2
|
|
|
3
|
-
## 0.0.0-vnext-inngest-
|
|
3
|
+
## 0.0.0-vnext-inngest-20250508111904
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
@@ -9,4 +9,4 @@
|
|
|
9
9
|
- Updated dependencies [b5d2de0]
|
|
10
10
|
- Updated dependencies [644f8ad]
|
|
11
11
|
- Updated dependencies [70dbf51]
|
|
12
|
-
- @mastra/core@0.0.0-vnext-inngest-
|
|
12
|
+
- @mastra/core@0.0.0-vnext-inngest-20250508111904
|
package/dist/index.cjs
CHANGED
|
@@ -154,7 +154,7 @@ var InngestWorkflow = class _InngestWorkflow extends vNext.NewWorkflow {
|
|
|
154
154
|
}
|
|
155
155
|
createRun(options) {
|
|
156
156
|
const runIdToUse = options?.runId || crypto.randomUUID();
|
|
157
|
-
const run = new InngestRun(
|
|
157
|
+
const run = this.runs.get(runIdToUse) ?? new InngestRun(
|
|
158
158
|
{
|
|
159
159
|
workflowId: this.id,
|
|
160
160
|
runId: runIdToUse,
|
package/dist/index.js
CHANGED
|
@@ -152,7 +152,7 @@ var InngestWorkflow = class _InngestWorkflow extends NewWorkflow {
|
|
|
152
152
|
}
|
|
153
153
|
createRun(options) {
|
|
154
154
|
const runIdToUse = options?.runId || randomUUID();
|
|
155
|
-
const run = new InngestRun(
|
|
155
|
+
const run = this.runs.get(runIdToUse) ?? new InngestRun(
|
|
156
156
|
{
|
|
157
157
|
workflowId: this.id,
|
|
158
158
|
runId: runIdToUse,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/inngest",
|
|
3
|
-
"version": "0.0.0-vnext-inngest-
|
|
3
|
+
"version": "0.0.0-vnext-inngest-20250508111904",
|
|
4
4
|
"description": "Mastra Inngest integration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"inngest": "^3.35.1",
|
|
24
24
|
"zod": "^3.24.2",
|
|
25
25
|
"@opentelemetry/api": "^1.9.0",
|
|
26
|
-
"@mastra/core": "0.0.0-vnext-inngest-
|
|
26
|
+
"@mastra/core": "0.0.0-vnext-inngest-20250508111904"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@ai-sdk/openai": "^1.2.1",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"tsup": "^8.4.0",
|
|
39
39
|
"typescript": "^5.8.2",
|
|
40
40
|
"vitest": "^2.1.9",
|
|
41
|
-
"@mastra/deployer": "0.0.0-vnext-inngest-
|
|
42
|
-
"@internal/lint": "0.0.0-vnext-inngest-
|
|
41
|
+
"@mastra/deployer": "0.0.0-vnext-inngest-20250508111904",
|
|
42
|
+
"@internal/lint": "0.0.0-vnext-inngest-20250508111904"
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|
|
45
45
|
"build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake=smallest --splitting",
|
package/src/index.ts
CHANGED
|
@@ -227,18 +227,20 @@ export class InngestWorkflow<
|
|
|
227
227
|
const runIdToUse = options?.runId || randomUUID();
|
|
228
228
|
|
|
229
229
|
// Return a new Run instance with object parameters
|
|
230
|
-
const run: Run<TSteps, TInput, TOutput> =
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
230
|
+
const run: Run<TSteps, TInput, TOutput> =
|
|
231
|
+
this.runs.get(runIdToUse) ??
|
|
232
|
+
new InngestRun(
|
|
233
|
+
{
|
|
234
|
+
workflowId: this.id,
|
|
235
|
+
runId: runIdToUse,
|
|
236
|
+
executionEngine: this.executionEngine,
|
|
237
|
+
executionGraph: this.executionGraph,
|
|
238
|
+
mastra: this.#mastra,
|
|
239
|
+
retryConfig: this.retryConfig,
|
|
240
|
+
cleanup: () => this.runs.delete(runIdToUse),
|
|
241
|
+
},
|
|
242
|
+
this.inngest,
|
|
243
|
+
);
|
|
242
244
|
|
|
243
245
|
this.runs.set(runIdToUse, run);
|
|
244
246
|
return run;
|