@mastra/cloudflare 0.1.1-alpha.2 → 0.1.1-alpha.4

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.
@@ -13,6 +13,7 @@ import type { TABLE_NAMES } from '@mastra/core/storage';
13
13
  import type { TABLE_THREADS } from '@mastra/core/storage';
14
14
  import type { TABLE_TRACES } from '@mastra/core/storage';
15
15
  import type { TABLE_WORKFLOW_SNAPSHOT } from '@mastra/core/storage';
16
+ import type { WorkflowRun } from '@mastra/core/storage';
16
17
  import type { WorkflowRuns } from '@mastra/core/storage';
17
18
  import type { WorkflowRunState } from '@mastra/core/workflows';
18
19
  import type { WorkflowRunState as WorkflowRunState_2 } from '@mastra/core';
@@ -170,6 +171,10 @@ declare class CloudflareStore extends MastraStorage {
170
171
  limit?: number;
171
172
  offset?: number;
172
173
  }): Promise<WorkflowRuns>;
174
+ getWorkflowRunById(_args: {
175
+ runId: string;
176
+ workflowName?: string;
177
+ }): Promise<WorkflowRun | null>;
173
178
  close(): Promise<void>;
174
179
  }
175
180
  export { CloudflareStore }
@@ -13,6 +13,7 @@ import type { TABLE_NAMES } from '@mastra/core/storage';
13
13
  import type { TABLE_THREADS } from '@mastra/core/storage';
14
14
  import type { TABLE_TRACES } from '@mastra/core/storage';
15
15
  import type { TABLE_WORKFLOW_SNAPSHOT } from '@mastra/core/storage';
16
+ import type { WorkflowRun } from '@mastra/core/storage';
16
17
  import type { WorkflowRuns } from '@mastra/core/storage';
17
18
  import type { WorkflowRunState } from '@mastra/core/workflows';
18
19
  import type { WorkflowRunState as WorkflowRunState_2 } from '@mastra/core';
@@ -170,6 +171,10 @@ declare class CloudflareStore extends MastraStorage {
170
171
  limit?: number;
171
172
  offset?: number;
172
173
  }): Promise<WorkflowRuns>;
174
+ getWorkflowRunById(_args: {
175
+ runId: string;
176
+ workflowName?: string;
177
+ }): Promise<WorkflowRun | null>;
173
178
  close(): Promise<void>;
174
179
  }
175
180
  export { CloudflareStore }
package/dist/index.cjs CHANGED
@@ -1005,6 +1005,9 @@ var CloudflareStore = class extends storage.MastraStorage {
1005
1005
  getWorkflowRuns(_args) {
1006
1006
  throw new Error("Method not implemented.");
1007
1007
  }
1008
+ async getWorkflowRunById(_args) {
1009
+ throw new Error("Method not implemented.");
1010
+ }
1008
1011
  async close() {
1009
1012
  }
1010
1013
  };
package/dist/index.js CHANGED
@@ -999,6 +999,9 @@ var CloudflareStore = class extends MastraStorage {
999
999
  getWorkflowRuns(_args) {
1000
1000
  throw new Error("Method not implemented.");
1001
1001
  }
1002
+ async getWorkflowRunById(_args) {
1003
+ throw new Error("Method not implemented.");
1004
+ }
1002
1005
  async close() {
1003
1006
  }
1004
1007
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/cloudflare",
3
- "version": "0.1.1-alpha.2",
3
+ "version": "0.1.1-alpha.4",
4
4
  "description": "Cloudflare provider for Mastra - includes db storage capabilities",
5
5
  "type": "module",
6
6
  "files": [
@@ -24,18 +24,18 @@
24
24
  "license": "MIT",
25
25
  "dependencies": {
26
26
  "cloudflare": "^4.1.0",
27
- "@mastra/core": "^0.9.1-alpha.2"
27
+ "@mastra/core": "^0.9.1-alpha.4"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@cloudflare/workers-types": "^4.20250313.0",
31
- "@microsoft/api-extractor": "^7.52.1",
31
+ "@microsoft/api-extractor": "^7.52.5",
32
32
  "@types/node": "^20.17.27",
33
33
  "dotenv": "^16.4.7",
34
34
  "eslint": "^9.23.0",
35
35
  "miniflare": "^4.20250310.0",
36
36
  "tsup": "^8.4.0",
37
37
  "typescript": "^5.8.2",
38
- "vitest": "^3.0.9",
38
+ "vitest": "^3.1.2",
39
39
  "@internal/lint": "0.0.2"
40
40
  },
41
41
  "scripts": {