@mastra/inngest 0.0.0-redis-cloud-transporter-20250508203756 → 0.0.0-vector-sources-20250516175436

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,6 +1,82 @@
1
1
  # @mastra/inngest
2
2
 
3
- ## 0.0.0-redis-cloud-transporter-20250508203756
3
+ ## 0.0.0-vector-sources-20250516175436
4
+
5
+ ### Patch Changes
6
+
7
+ - e4172d9: Update getWorkflowRuns type for inngest workflow
8
+ - Updated dependencies [f53a6ac]
9
+ - Updated dependencies [eabdcd9]
10
+ - Updated dependencies [d0ee3c6]
11
+ - Updated dependencies [23f258c]
12
+ - Updated dependencies [2672a05]
13
+ - @mastra/core@0.0.0-vector-sources-20250516175436
14
+
15
+ ## 0.0.3
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies [396be50]
20
+ - Updated dependencies [ab80e7e]
21
+ - Updated dependencies [c3bd795]
22
+ - Updated dependencies [da082f8]
23
+ - Updated dependencies [a5810ce]
24
+ - Updated dependencies [3e9c131]
25
+ - Updated dependencies [3171b5b]
26
+ - Updated dependencies [973e5ac]
27
+ - Updated dependencies [daf942f]
28
+ - Updated dependencies [0b8b868]
29
+ - Updated dependencies [9e1eff5]
30
+ - Updated dependencies [6fa1ad1]
31
+ - Updated dependencies [c28d7a0]
32
+ - Updated dependencies [edf1e88]
33
+ - @mastra/core@0.9.4
34
+
35
+ ## 0.0.3-alpha.4
36
+
37
+ ### Patch Changes
38
+
39
+ - Updated dependencies [3e9c131]
40
+ - @mastra/core@0.9.4-alpha.4
41
+
42
+ ## 0.0.3-alpha.3
43
+
44
+ ### Patch Changes
45
+
46
+ - Updated dependencies [396be50]
47
+ - Updated dependencies [c3bd795]
48
+ - Updated dependencies [da082f8]
49
+ - Updated dependencies [a5810ce]
50
+ - @mastra/core@0.9.4-alpha.3
51
+
52
+ ## 0.0.3-alpha.2
53
+
54
+ ### Patch Changes
55
+
56
+ - Updated dependencies [3171b5b]
57
+ - Updated dependencies [973e5ac]
58
+ - Updated dependencies [9e1eff5]
59
+ - @mastra/core@0.9.4-alpha.2
60
+
61
+ ## 0.0.3-alpha.1
62
+
63
+ ### Patch Changes
64
+
65
+ - Updated dependencies [ab80e7e]
66
+ - Updated dependencies [6fa1ad1]
67
+ - Updated dependencies [c28d7a0]
68
+ - Updated dependencies [edf1e88]
69
+ - @mastra/core@0.9.4-alpha.1
70
+
71
+ ## 0.0.3-alpha.0
72
+
73
+ ### Patch Changes
74
+
75
+ - Updated dependencies [daf942f]
76
+ - Updated dependencies [0b8b868]
77
+ - @mastra/core@0.9.4-alpha.0
78
+
79
+ ## 0.0.2
4
80
 
5
81
  ### Patch Changes
6
82
 
@@ -9,8 +85,21 @@
9
85
  - Updated dependencies [8902157]
10
86
  - Updated dependencies [ca0dc88]
11
87
  - Updated dependencies [526c570]
88
+ - Updated dependencies [d7a6a33]
12
89
  - Updated dependencies [9cd1a46]
13
90
  - Updated dependencies [b5d2de0]
14
91
  - Updated dependencies [644f8ad]
15
92
  - Updated dependencies [70dbf51]
16
- - @mastra/core@0.0.0-redis-cloud-transporter-20250508203756
93
+ - @mastra/core@0.9.3
94
+
95
+ ## 0.0.2-alpha.0
96
+
97
+ ### Patch Changes
98
+
99
+ - e450778: vnext: Inngest playground fixes
100
+ - Updated dependencies [e450778]
101
+ - Updated dependencies [8902157]
102
+ - Updated dependencies [ca0dc88]
103
+ - Updated dependencies [9cd1a46]
104
+ - Updated dependencies [70dbf51]
105
+ - @mastra/core@0.9.3-alpha.1
@@ -21,9 +21,9 @@ import { serve as serve_2 } from 'inngest/hono';
21
21
  import type { Span } from '@opentelemetry/api';
22
22
  import type { StepFlowEntry } from '@mastra/core/workflows/vNext';
23
23
  import type { StepResult } from '@mastra/core/workflows/vNext';
24
+ import type { VNextWorkflowRun } from '@mastra/core';
25
+ import type { VNextWorkflowRuns } from '@mastra/core';
24
26
  import type { WorkflowResult } from '@mastra/core/workflows/vNext';
25
- import type { WorkflowRun } from '@mastra/core';
26
- import { WorkflowRuns } from '@mastra/core';
27
27
  import type { z } from 'zod';
28
28
 
29
29
  declare function cloneWorkflow<TWorkflowId extends string = string, TInput extends z.ZodType<any> = z.ZodType<any>, TOutput extends z.ZodType<any> = z.ZodType<any>, TSteps extends NewStep<string, any, any, any, any>[] = NewStep<string, any, any, any, any>[]>(workflow: InngestWorkflow<TSteps, string, TInput, TOutput>, opts: {
@@ -155,8 +155,8 @@ export declare class InngestWorkflow<TSteps extends NewStep<string, any, any>[]
155
155
  limit?: number;
156
156
  offset?: number;
157
157
  resourceId?: string;
158
- }): Promise<WorkflowRuns>;
159
- getWorkflowRunById(runId: string): Promise<WorkflowRun | null>;
158
+ }): Promise<VNextWorkflowRuns>;
159
+ getWorkflowRunById(runId: string): Promise<VNextWorkflowRun | null>;
160
160
  __registerMastra(mastra: Mastra): void;
161
161
  createRun(options?: {
162
162
  runId?: string;
@@ -21,9 +21,9 @@ import { serve as serve_2 } from 'inngest/hono';
21
21
  import type { Span } from '@opentelemetry/api';
22
22
  import type { StepFlowEntry } from '@mastra/core/workflows/vNext';
23
23
  import type { StepResult } from '@mastra/core/workflows/vNext';
24
+ import type { VNextWorkflowRun } from '@mastra/core';
25
+ import type { VNextWorkflowRuns } from '@mastra/core';
24
26
  import type { WorkflowResult } from '@mastra/core/workflows/vNext';
25
- import type { WorkflowRun } from '@mastra/core';
26
- import { WorkflowRuns } from '@mastra/core';
27
27
  import type { z } from 'zod';
28
28
 
29
29
  declare function cloneWorkflow<TWorkflowId extends string = string, TInput extends z.ZodType<any> = z.ZodType<any>, TOutput extends z.ZodType<any> = z.ZodType<any>, TSteps extends NewStep<string, any, any, any, any>[] = NewStep<string, any, any, any, any>[]>(workflow: InngestWorkflow<TSteps, string, TInput, TOutput>, opts: {
@@ -155,8 +155,8 @@ export declare class InngestWorkflow<TSteps extends NewStep<string, any, any>[]
155
155
  limit?: number;
156
156
  offset?: number;
157
157
  resourceId?: string;
158
- }): Promise<WorkflowRuns>;
159
- getWorkflowRunById(runId: string): Promise<WorkflowRun | null>;
158
+ }): Promise<VNextWorkflowRuns>;
159
+ getWorkflowRunById(runId: string): Promise<VNextWorkflowRun | null>;
160
160
  __registerMastra(mastra: Mastra): void;
161
161
  createRun(options?: {
162
162
  runId?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/inngest",
3
- "version": "0.0.0-redis-cloud-transporter-20250508203756",
3
+ "version": "0.0.0-vector-sources-20250516175436",
4
4
  "description": "Mastra Inngest integration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -23,14 +23,14 @@
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-redis-cloud-transporter-20250508203756"
26
+ "@mastra/core": "0.0.0-vector-sources-20250516175436"
27
27
  },
28
28
  "devDependencies": {
29
- "@ai-sdk/openai": "^1.2.1",
29
+ "@ai-sdk/openai": "^1.3.22",
30
30
  "@hono/node-server": "^1.14.1",
31
31
  "@microsoft/api-extractor": "^7.52.2",
32
32
  "@types/node": "^20.17.27",
33
- "ai": "^4.2.2",
33
+ "ai": "^4.3.15",
34
34
  "eslint": "^9.23.0",
35
35
  "execa": "^9.5.2",
36
36
  "get-port": "7.1.0",
@@ -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-redis-cloud-transporter-20250508203756",
42
- "@internal/lint": "0.0.0-redis-cloud-transporter-20250508203756"
41
+ "@mastra/deployer": "0.0.0-vector-sources-20250516175436",
42
+ "@internal/lint": "0.0.0-vector-sources-20250516175436"
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
@@ -1,6 +1,6 @@
1
1
  import { randomUUID } from 'crypto';
2
2
  import { subscribe } from '@inngest/realtime';
3
- import type { Mastra, WorkflowRun } from '@mastra/core';
3
+ import type { Mastra, VNextWorkflowRun, VNextWorkflowRuns } from '@mastra/core';
4
4
  import { RuntimeContext } from '@mastra/core/di';
5
5
  import { NewWorkflow, createStep, Run, DefaultExecutionEngine, cloneStep } from '@mastra/core/workflows/vNext';
6
6
  import type {
@@ -226,20 +226,22 @@ export class InngestWorkflow<
226
226
  return { runs: [], total: 0 };
227
227
  }
228
228
 
229
- return storage.getWorkflowRuns({ workflowName: this.id, ...(args ?? {}) });
229
+ return storage.getWorkflowRuns({ workflowName: this.id, ...(args ?? {}) }) as unknown as VNextWorkflowRuns;
230
230
  }
231
231
 
232
- async getWorkflowRunById(runId: string): Promise<WorkflowRun | null> {
232
+ async getWorkflowRunById(runId: string): Promise<VNextWorkflowRun | null> {
233
233
  const storage = this.#mastra?.getStorage();
234
234
  if (!storage) {
235
235
  this.logger.debug('Cannot get workflow runs. Mastra engine is not initialized');
236
236
  return null;
237
237
  }
238
- const run = await storage.getWorkflowRunById({ runId, workflowName: this.id });
238
+ const run = (await storage.getWorkflowRunById({ runId, workflowName: this.id })) as unknown as VNextWorkflowRun;
239
239
 
240
240
  return (
241
241
  run ??
242
- (this.runs.get(runId) ? ({ ...this.runs.get(runId), workflowName: this.id } as unknown as WorkflowRun) : null)
242
+ (this.runs.get(runId)
243
+ ? ({ ...this.runs.get(runId), workflowName: this.id } as unknown as VNextWorkflowRun)
244
+ : null)
243
245
  );
244
246
  }
245
247