@mastra/inngest 0.0.0-vnext-inngest-20250506123700 → 0.0.0-vnext-inngest-20250506132005
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/_tsup-dts-rollup.d.cts +2 -2
- package/dist/_tsup-dts-rollup.d.ts +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/package.json +4 -4
- package/src/index.test.ts +278 -168
- package/src/index.ts +2 -2
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-20250506132005
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
@@ -18,4 +18,4 @@
|
|
|
18
18
|
- Updated dependencies [17826a9]
|
|
19
19
|
- Updated dependencies [fba031f]
|
|
20
20
|
- Updated dependencies [51e6923]
|
|
21
|
-
- @mastra/core@0.0.0-vnext-inngest-
|
|
21
|
+
- @mastra/core@0.0.0-vnext-inngest-20250506132005
|
|
@@ -175,9 +175,9 @@ export declare class InngestWorkflow<TSteps extends NewStep<string, any, any>[]
|
|
|
175
175
|
} & Partial<Record<"cron", never>>]>[];
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
-
export declare function serve({ mastra,
|
|
178
|
+
export declare function serve({ mastra, inngest }: {
|
|
179
179
|
mastra: Mastra;
|
|
180
|
-
|
|
180
|
+
inngest: Inngest;
|
|
181
181
|
}): ReturnType<typeof serve_2>;
|
|
182
182
|
|
|
183
183
|
export { }
|
|
@@ -175,9 +175,9 @@ export declare class InngestWorkflow<TSteps extends NewStep<string, any, any>[]
|
|
|
175
175
|
} & Partial<Record<"cron", never>>]>[];
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
-
export declare function serve({ mastra,
|
|
178
|
+
export declare function serve({ mastra, inngest }: {
|
|
179
179
|
mastra: Mastra;
|
|
180
|
-
|
|
180
|
+
inngest: Inngest;
|
|
181
181
|
}): ReturnType<typeof serve_2>;
|
|
182
182
|
|
|
183
183
|
export { }
|
package/dist/index.cjs
CHANGED
|
@@ -7,7 +7,7 @@ var di = require('@mastra/core/di');
|
|
|
7
7
|
var crypto = require('crypto');
|
|
8
8
|
|
|
9
9
|
// src/index.ts
|
|
10
|
-
function serve({ mastra,
|
|
10
|
+
function serve({ mastra, inngest }) {
|
|
11
11
|
const wfs = mastra.vnext_getWorkflows();
|
|
12
12
|
const functions = Object.values(wfs).flatMap((wf) => {
|
|
13
13
|
if (wf instanceof InngestWorkflow) {
|
|
@@ -16,7 +16,7 @@ function serve({ mastra, ingest }) {
|
|
|
16
16
|
return [];
|
|
17
17
|
});
|
|
18
18
|
return hono.serve({
|
|
19
|
-
client:
|
|
19
|
+
client: inngest,
|
|
20
20
|
functions
|
|
21
21
|
});
|
|
22
22
|
}
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { RuntimeContext } from '@mastra/core/di';
|
|
|
5
5
|
import { randomUUID } from 'crypto';
|
|
6
6
|
|
|
7
7
|
// src/index.ts
|
|
8
|
-
function serve({ mastra,
|
|
8
|
+
function serve({ mastra, inngest }) {
|
|
9
9
|
const wfs = mastra.vnext_getWorkflows();
|
|
10
10
|
const functions = Object.values(wfs).flatMap((wf) => {
|
|
11
11
|
if (wf instanceof InngestWorkflow) {
|
|
@@ -14,7 +14,7 @@ function serve({ mastra, ingest }) {
|
|
|
14
14
|
return [];
|
|
15
15
|
});
|
|
16
16
|
return serve$1({
|
|
17
|
-
client:
|
|
17
|
+
client: inngest,
|
|
18
18
|
functions
|
|
19
19
|
});
|
|
20
20
|
}
|
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-20250506132005",
|
|
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-20250506132005"
|
|
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-20250506132005",
|
|
42
|
+
"@internal/lint": "0.0.0-vnext-inngest-20250506132005"
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|
|
45
45
|
"build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake=smallest --splitting",
|