@mastra/inngest 0.10.6-alpha.0 → 0.10.6-alpha.2
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/.turbo/turbo-build.log +6 -6
- package/CHANGELOG.md +25 -0
- package/dist/_tsup-dts-rollup.d.cts +4 -3
- package/dist/_tsup-dts-rollup.d.ts +4 -3
- package/package.json +6 -6
- package/src/index.ts +6 -4
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
|
|
2
|
-
> @mastra/inngest@0.10.6-alpha.
|
|
2
|
+
> @mastra/inngest@0.10.6-alpha.2 build /home/runner/work/mastra/mastra/workflows/inngest
|
|
3
3
|
> tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake=smallest --splitting
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
6
6
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
7
|
[34mCLI[39m tsup v8.5.0
|
|
8
8
|
[34mTSC[39m Build start
|
|
9
|
-
[32mTSC[39m ⚡️ Build success in
|
|
9
|
+
[32mTSC[39m ⚡️ Build success in 9138ms
|
|
10
10
|
[34mDTS[39m Build start
|
|
11
11
|
[34mCLI[39m Target: es2022
|
|
12
12
|
Analysis will use the bundled TypeScript version 5.8.3
|
|
13
13
|
[36mWriting package typings: /home/runner/work/mastra/mastra/workflows/inngest/dist/_tsup-dts-rollup.d.ts[39m
|
|
14
14
|
Analysis will use the bundled TypeScript version 5.8.3
|
|
15
15
|
[36mWriting package typings: /home/runner/work/mastra/mastra/workflows/inngest/dist/_tsup-dts-rollup.d.cts[39m
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 5865ms
|
|
17
17
|
[34mCLI[39m Cleaning output folder
|
|
18
18
|
[34mESM[39m Build start
|
|
19
19
|
[34mCJS[39m Build start
|
|
20
|
-
[32mESM[39m [1mdist/index.js [22m[32m31.23 KB[39m
|
|
21
|
-
[32mESM[39m ⚡️ Build success in 293ms
|
|
22
20
|
[32mCJS[39m [1mdist/index.cjs [22m[32m31.43 KB[39m
|
|
23
|
-
[32mCJS[39m ⚡️ Build success in
|
|
21
|
+
[32mCJS[39m ⚡️ Build success in 236ms
|
|
22
|
+
[32mESM[39m [1mdist/index.js [22m[32m31.23 KB[39m
|
|
23
|
+
[32mESM[39m ⚡️ Build success in 237ms
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @mastra/inngest
|
|
2
2
|
|
|
3
|
+
## 0.10.6-alpha.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 8e1b6e9: dependencies updates:
|
|
8
|
+
- Updated dependency [`zod@^3.25.67` ↗︎](https://www.npmjs.com/package/zod/v/3.25.67) (from `^3.25.57`, in `dependencies`)
|
|
9
|
+
- Updated dependencies [15e9d26]
|
|
10
|
+
- Updated dependencies [07d6d88]
|
|
11
|
+
- Updated dependencies [5d74aab]
|
|
12
|
+
- Updated dependencies [144eb0b]
|
|
13
|
+
- @mastra/core@0.10.7-alpha.2
|
|
14
|
+
|
|
15
|
+
## 0.10.6-alpha.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- 4fb0cc2: Type safe variable mapping
|
|
20
|
+
- Updated dependencies [d1baedb]
|
|
21
|
+
- Updated dependencies [4d21bf2]
|
|
22
|
+
- Updated dependencies [2097952]
|
|
23
|
+
- Updated dependencies [4fb0cc2]
|
|
24
|
+
- Updated dependencies [d2a7a31]
|
|
25
|
+
- Updated dependencies [0e17048]
|
|
26
|
+
- @mastra/core@0.10.7-alpha.1
|
|
27
|
+
|
|
3
28
|
## 0.10.6-alpha.0
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
|
@@ -12,6 +12,7 @@ import type { Inngest } from 'inngest';
|
|
|
12
12
|
import { InngestFunction } from 'inngest';
|
|
13
13
|
import { InngestMiddleware } from 'inngest';
|
|
14
14
|
import type { Mastra } from '@mastra/core';
|
|
15
|
+
import type { ReadableStream as ReadableStream_2 } from 'node:stream/web';
|
|
15
16
|
import { Run } from '@mastra/core/workflows';
|
|
16
17
|
import { RuntimeContext } from '@mastra/core/di';
|
|
17
18
|
import type { SerializedStepFlowEntry } from '@mastra/core/workflows';
|
|
@@ -59,9 +60,9 @@ export declare function init(inngest: Inngest): {
|
|
|
59
60
|
cloneStep<TStepId extends string>(step: Step<string, any, any, any, any, InngestEngineType>, opts: {
|
|
60
61
|
id: TStepId;
|
|
61
62
|
}): Step<TStepId, any, any, any, any, InngestEngineType>;
|
|
62
|
-
cloneWorkflow<TWorkflowId extends string = string, TInput extends z.ZodType<any> = z.ZodType<any, z.ZodTypeDef, any>, TOutput extends z.ZodType<any> = z.ZodType<any, z.ZodTypeDef, any>, TSteps extends Step<string, any, any, any, any, InngestEngineType>[] = Step<string, any, any, any, any, InngestEngineType>[]>(workflow: Workflow<InngestEngineType, TSteps, string, TInput, TOutput,
|
|
63
|
+
cloneWorkflow<TWorkflowId extends string = string, TInput extends z.ZodType<any> = z.ZodType<any, z.ZodTypeDef, any>, TOutput extends z.ZodType<any> = z.ZodType<any, z.ZodTypeDef, any>, TSteps extends Step<string, any, any, any, any, InngestEngineType>[] = Step<string, any, any, any, any, InngestEngineType>[], TPrevSchema extends z.ZodType<any> = TInput>(workflow: Workflow<InngestEngineType, TSteps, string, TInput, TOutput, TPrevSchema>, opts: {
|
|
63
64
|
id: TWorkflowId;
|
|
64
|
-
}): Workflow<InngestEngineType, TSteps, TWorkflowId, TInput, TOutput,
|
|
65
|
+
}): Workflow<InngestEngineType, TSteps, TWorkflowId, TInput, TOutput, TPrevSchema>;
|
|
65
66
|
};
|
|
66
67
|
|
|
67
68
|
export declare type InngestEngineType = {
|
|
@@ -209,7 +210,7 @@ export declare class InngestRun<TEngineType = InngestEngineType, TSteps extends
|
|
|
209
210
|
inputData?: z.infer<TInput>;
|
|
210
211
|
runtimeContext?: RuntimeContext;
|
|
211
212
|
}): {
|
|
212
|
-
stream:
|
|
213
|
+
stream: ReadableStream_2<StreamEvent>;
|
|
213
214
|
getWorkflowState: () => Promise<WorkflowResult<TOutput, TSteps>>;
|
|
214
215
|
};
|
|
215
216
|
}
|
|
@@ -12,6 +12,7 @@ import type { Inngest } from 'inngest';
|
|
|
12
12
|
import { InngestFunction } from 'inngest';
|
|
13
13
|
import { InngestMiddleware } from 'inngest';
|
|
14
14
|
import type { Mastra } from '@mastra/core';
|
|
15
|
+
import type { ReadableStream as ReadableStream_2 } from 'node:stream/web';
|
|
15
16
|
import { Run } from '@mastra/core/workflows';
|
|
16
17
|
import { RuntimeContext } from '@mastra/core/di';
|
|
17
18
|
import type { SerializedStepFlowEntry } from '@mastra/core/workflows';
|
|
@@ -59,9 +60,9 @@ export declare function init(inngest: Inngest): {
|
|
|
59
60
|
cloneStep<TStepId extends string>(step: Step<string, any, any, any, any, InngestEngineType>, opts: {
|
|
60
61
|
id: TStepId;
|
|
61
62
|
}): Step<TStepId, any, any, any, any, InngestEngineType>;
|
|
62
|
-
cloneWorkflow<TWorkflowId extends string = string, TInput extends z.ZodType<any> = z.ZodType<any, z.ZodTypeDef, any>, TOutput extends z.ZodType<any> = z.ZodType<any, z.ZodTypeDef, any>, TSteps extends Step<string, any, any, any, any, InngestEngineType>[] = Step<string, any, any, any, any, InngestEngineType>[]>(workflow: Workflow<InngestEngineType, TSteps, string, TInput, TOutput,
|
|
63
|
+
cloneWorkflow<TWorkflowId extends string = string, TInput extends z.ZodType<any> = z.ZodType<any, z.ZodTypeDef, any>, TOutput extends z.ZodType<any> = z.ZodType<any, z.ZodTypeDef, any>, TSteps extends Step<string, any, any, any, any, InngestEngineType>[] = Step<string, any, any, any, any, InngestEngineType>[], TPrevSchema extends z.ZodType<any> = TInput>(workflow: Workflow<InngestEngineType, TSteps, string, TInput, TOutput, TPrevSchema>, opts: {
|
|
63
64
|
id: TWorkflowId;
|
|
64
|
-
}): Workflow<InngestEngineType, TSteps, TWorkflowId, TInput, TOutput,
|
|
65
|
+
}): Workflow<InngestEngineType, TSteps, TWorkflowId, TInput, TOutput, TPrevSchema>;
|
|
65
66
|
};
|
|
66
67
|
|
|
67
68
|
export declare type InngestEngineType = {
|
|
@@ -209,7 +210,7 @@ export declare class InngestRun<TEngineType = InngestEngineType, TSteps extends
|
|
|
209
210
|
inputData?: z.infer<TInput>;
|
|
210
211
|
runtimeContext?: RuntimeContext;
|
|
211
212
|
}): {
|
|
212
|
-
stream:
|
|
213
|
+
stream: ReadableStream_2<StreamEvent>;
|
|
213
214
|
getWorkflowState: () => Promise<WorkflowResult<TOutput, TSteps>>;
|
|
214
215
|
};
|
|
215
216
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/inngest",
|
|
3
|
-
"version": "0.10.6-alpha.
|
|
3
|
+
"version": "0.10.6-alpha.2",
|
|
4
4
|
"description": "Mastra Inngest integration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@inngest/realtime": "^0.3.1",
|
|
23
23
|
"@opentelemetry/api": "^1.9.0",
|
|
24
24
|
"inngest": "^3.39.1",
|
|
25
|
-
"zod": "^3.25.
|
|
25
|
+
"zod": "^3.25.67"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@ai-sdk/openai": "^1.3.22",
|
|
@@ -30,17 +30,17 @@
|
|
|
30
30
|
"@microsoft/api-extractor": "^7.52.8",
|
|
31
31
|
"@types/node": "^20.19.0",
|
|
32
32
|
"ai": "^4.3.16",
|
|
33
|
-
"eslint": "^9.
|
|
33
|
+
"eslint": "^9.29.0",
|
|
34
34
|
"execa": "^9.6.0",
|
|
35
35
|
"get-port": "7.1.0",
|
|
36
36
|
"hono": "^4.7.11",
|
|
37
37
|
"tsup": "^8.5.0",
|
|
38
38
|
"typescript": "^5.8.3",
|
|
39
39
|
"vitest": "^2.1.9",
|
|
40
|
+
"@mastra/core": "0.10.7-alpha.2",
|
|
40
41
|
"@internal/lint": "0.0.13",
|
|
41
|
-
"@mastra/
|
|
42
|
-
"@mastra/
|
|
43
|
-
"@mastra/deployer": "0.10.7-alpha.0"
|
|
42
|
+
"@mastra/libsql": "0.10.4-alpha.2",
|
|
43
|
+
"@mastra/deployer": "0.10.7-alpha.2"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"@mastra/core": "^0.10.2-alpha.0"
|
package/src/index.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { randomUUID } from 'crypto';
|
|
2
|
+
import type { ReadableStream } from 'node:stream/web';
|
|
2
3
|
import { subscribe } from '@inngest/realtime';
|
|
3
4
|
import type { Agent, Mastra, ToolExecutionContext, WorkflowRun, WorkflowRuns } from '@mastra/core';
|
|
4
5
|
import { RuntimeContext } from '@mastra/core/di';
|
|
@@ -278,7 +279,7 @@ export class InngestRun<
|
|
|
278
279
|
});
|
|
279
280
|
|
|
280
281
|
return {
|
|
281
|
-
stream: readable
|
|
282
|
+
stream: readable as ReadableStream<StreamEvent>,
|
|
282
283
|
getWorkflowState: () => this.executionResults!,
|
|
283
284
|
};
|
|
284
285
|
}
|
|
@@ -722,11 +723,12 @@ export function init(inngest: Inngest) {
|
|
|
722
723
|
any,
|
|
723
724
|
InngestEngineType
|
|
724
725
|
>[],
|
|
726
|
+
TPrevSchema extends z.ZodType<any> = TInput,
|
|
725
727
|
>(
|
|
726
|
-
workflow: Workflow<InngestEngineType, TSteps, string, TInput, TOutput,
|
|
728
|
+
workflow: Workflow<InngestEngineType, TSteps, string, TInput, TOutput, TPrevSchema>,
|
|
727
729
|
opts: { id: TWorkflowId },
|
|
728
|
-
): Workflow<InngestEngineType, TSteps, TWorkflowId, TInput, TOutput,
|
|
729
|
-
const wf = new Workflow({
|
|
730
|
+
): Workflow<InngestEngineType, TSteps, TWorkflowId, TInput, TOutput, TPrevSchema> {
|
|
731
|
+
const wf: Workflow<InngestEngineType, TSteps, TWorkflowId, TInput, TOutput, TPrevSchema> = new Workflow({
|
|
730
732
|
id: opts.id,
|
|
731
733
|
inputSchema: workflow.inputSchema,
|
|
732
734
|
outputSchema: workflow.outputSchema,
|