@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.
@@ -1,23 +1,23 @@
1
1
 
2
- > @mastra/inngest@0.10.6-alpha.0 build /home/runner/work/mastra/mastra/workflows/inngest
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
  CLI Building entry: src/index.ts
6
6
  CLI Using tsconfig: tsconfig.json
7
7
  CLI tsup v8.5.0
8
8
  TSC Build start
9
- TSC ⚡️ Build success in 8972ms
9
+ TSC ⚡️ Build success in 9138ms
10
10
  DTS Build start
11
11
  CLI Target: es2022
12
12
  Analysis will use the bundled TypeScript version 5.8.3
13
13
  Writing package typings: /home/runner/work/mastra/mastra/workflows/inngest/dist/_tsup-dts-rollup.d.ts
14
14
  Analysis will use the bundled TypeScript version 5.8.3
15
15
  Writing package typings: /home/runner/work/mastra/mastra/workflows/inngest/dist/_tsup-dts-rollup.d.cts
16
- DTS ⚡️ Build success in 6816ms
16
+ DTS ⚡️ Build success in 5865ms
17
17
  CLI Cleaning output folder
18
18
  ESM Build start
19
19
  CJS Build start
20
- ESM dist/index.js 31.23 KB
21
- ESM ⚡️ Build success in 293ms
22
20
  CJS dist/index.cjs 31.43 KB
23
- CJS ⚡️ Build success in 293ms
21
+ CJS ⚡️ Build success in 236ms
22
+ ESM dist/index.js 31.23 KB
23
+ ESM ⚡️ 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, TInput>, opts: {
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, TInput>;
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: ReadableStream<StreamEvent>;
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, TInput>, opts: {
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, TInput>;
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: ReadableStream<StreamEvent>;
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.0",
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.57"
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.28.0",
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/core": "0.10.7-alpha.0",
42
- "@mastra/libsql": "0.10.4-alpha.0",
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, TInput>,
728
+ workflow: Workflow<InngestEngineType, TSteps, string, TInput, TOutput, TPrevSchema>,
727
729
  opts: { id: TWorkflowId },
728
- ): Workflow<InngestEngineType, TSteps, TWorkflowId, TInput, TOutput, TInput> {
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,