@mastra/cloudflare-d1 0.1.6-alpha.3 → 0.1.6-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.
@@ -6,6 +6,7 @@ import type { StorageColumn } from '@mastra/core/storage';
6
6
  import type { StorageGetMessagesArg } from '@mastra/core/storage';
7
7
  import type { StorageThreadType } from '@mastra/core/memory';
8
8
  import type { TABLE_NAMES } from '@mastra/core/storage';
9
+ import type { WorkflowRun } from '@mastra/core/storage';
9
10
  import type { WorkflowRuns } from '@mastra/core/storage';
10
11
  import type { WorkflowRunState } from '@mastra/core/workflows';
11
12
  import type { WorkflowRunState as WorkflowRunState_2 } from '@mastra/core';
@@ -168,6 +169,10 @@ declare class D1Store extends MastraStorage {
168
169
  limit?: number;
169
170
  offset?: number;
170
171
  }): Promise<WorkflowRuns>;
172
+ getWorkflowRunById(_args: {
173
+ runId: string;
174
+ workflowName?: string;
175
+ }): Promise<WorkflowRun | null>;
171
176
  /**
172
177
  * Close the database connection
173
178
  * No explicit cleanup needed for D1 in either REST or Workers Binding mode
@@ -6,6 +6,7 @@ import type { StorageColumn } from '@mastra/core/storage';
6
6
  import type { StorageGetMessagesArg } from '@mastra/core/storage';
7
7
  import type { StorageThreadType } from '@mastra/core/memory';
8
8
  import type { TABLE_NAMES } from '@mastra/core/storage';
9
+ import type { WorkflowRun } from '@mastra/core/storage';
9
10
  import type { WorkflowRuns } from '@mastra/core/storage';
10
11
  import type { WorkflowRunState } from '@mastra/core/workflows';
11
12
  import type { WorkflowRunState as WorkflowRunState_2 } from '@mastra/core';
@@ -168,6 +169,10 @@ declare class D1Store extends MastraStorage {
168
169
  limit?: number;
169
170
  offset?: number;
170
171
  }): Promise<WorkflowRuns>;
172
+ getWorkflowRunById(_args: {
173
+ runId: string;
174
+ workflowName?: string;
175
+ }): Promise<WorkflowRun | null>;
171
176
  /**
172
177
  * Close the database connection
173
178
  * No explicit cleanup needed for D1 in either REST or Workers Binding mode
package/dist/index.cjs CHANGED
@@ -932,6 +932,9 @@ var D1Store = class extends storage.MastraStorage {
932
932
  getWorkflowRuns(_args) {
933
933
  throw new Error("Method not implemented.");
934
934
  }
935
+ async getWorkflowRunById(_args) {
936
+ throw new Error("Method not implemented.");
937
+ }
935
938
  /**
936
939
  * Close the database connection
937
940
  * No explicit cleanup needed for D1 in either REST or Workers Binding mode
package/dist/index.js CHANGED
@@ -926,6 +926,9 @@ var D1Store = class extends MastraStorage {
926
926
  getWorkflowRuns(_args) {
927
927
  throw new Error("Method not implemented.");
928
928
  }
929
+ async getWorkflowRunById(_args) {
930
+ throw new Error("Method not implemented.");
931
+ }
929
932
  /**
930
933
  * Close the database connection
931
934
  * No explicit cleanup needed for D1 in either REST or Workers Binding mode
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/cloudflare-d1",
3
- "version": "0.1.6-alpha.3",
3
+ "version": "0.1.6-alpha.4",
4
4
  "description": "D1 provider for Mastra - includes db storage capabilities",
5
5
  "type": "module",
6
6
  "files": [
@@ -23,18 +23,18 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "cloudflare": "^4.1.0",
26
- "@mastra/core": "^0.9.1-alpha.3"
26
+ "@mastra/core": "^0.9.1-alpha.4"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@cloudflare/workers-types": "^4.20250417.0",
30
- "@microsoft/api-extractor": "^7.52.1",
30
+ "@microsoft/api-extractor": "^7.52.5",
31
31
  "@types/node": "^20.17.27",
32
32
  "dotenv": "^16.4.7",
33
33
  "eslint": "^9.23.0",
34
34
  "miniflare": "^4.20250410.1",
35
35
  "tsup": "^8.4.0",
36
36
  "typescript": "^5.8.2",
37
- "vitest": "^3.0.9",
37
+ "vitest": "^3.1.2",
38
38
  "@internal/lint": "0.0.2"
39
39
  },
40
40
  "scripts": {