@mastra/cloudflare 1.0.0-beta.3 → 1.0.0-beta.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,36 @@
1
1
  # @mastra/cloudflare
2
2
 
3
+ ## 1.0.0-beta.4
4
+
5
+ ### Minor Changes
6
+
7
+ - Add `disableInit` option to all storage adapters ([#10851](https://github.com/mastra-ai/mastra/pull/10851))
8
+
9
+ Adds a new `disableInit` config option to all storage providers that allows users to disable automatic table creation/migrations at runtime. This is useful for CI/CD pipelines where you want to run migrations during deployment with elevated credentials, then run the application with `disableInit: true` so it doesn't attempt schema changes at runtime.
10
+
11
+ ```typescript
12
+ // CI/CD script - run migrations
13
+ const storage = new PostgresStore({
14
+ connectionString: DATABASE_URL,
15
+ id: 'pg-storage',
16
+ });
17
+ await storage.init();
18
+
19
+ // Runtime - skip auto-init
20
+ const storage = new PostgresStore({
21
+ connectionString: DATABASE_URL,
22
+ id: 'pg-storage',
23
+ disableInit: true,
24
+ });
25
+ ```
26
+
27
+ ### Patch Changes
28
+
29
+ - Standardize error IDs across all storage and vector stores using centralized helper functions (`createStorageErrorId` and `createVectorErrorId`). This ensures consistent error ID patterns (`MASTRA_STORAGE_{STORE}_{OPERATION}_{STATUS}` and `MASTRA_VECTOR_{STORE}_{OPERATION}_{STATUS}`) across the codebase for better error tracking and debugging. ([#10913](https://github.com/mastra-ai/mastra/pull/10913))
30
+
31
+ - Updated dependencies [[`3076c67`](https://github.com/mastra-ai/mastra/commit/3076c6778b18988ae7d5c4c5c466366974b2d63f), [`85d7ee1`](https://github.com/mastra-ai/mastra/commit/85d7ee18ff4e14d625a8a30ec6656bb49804989b), [`c6c1092`](https://github.com/mastra-ai/mastra/commit/c6c1092f8fbf76109303f69e000e96fd1960c4ce), [`81dc110`](https://github.com/mastra-ai/mastra/commit/81dc11008d147cf5bdc8996ead1aa61dbdebb6fc), [`7aedb74`](https://github.com/mastra-ai/mastra/commit/7aedb74883adf66af38e270e4068fd42e7a37036), [`8f02d80`](https://github.com/mastra-ai/mastra/commit/8f02d800777397e4b45d7f1ad041988a8b0c6630), [`d7aad50`](https://github.com/mastra-ai/mastra/commit/d7aad501ce61646b76b4b511e558ac4eea9884d0), [`ce0a73a`](https://github.com/mastra-ai/mastra/commit/ce0a73abeaa75b10ca38f9e40a255a645d50ebfb), [`a02e542`](https://github.com/mastra-ai/mastra/commit/a02e542d23179bad250b044b17ff023caa61739f), [`a372c64`](https://github.com/mastra-ai/mastra/commit/a372c640ad1fd12e8f0613cebdc682fc156b4d95), [`8846867`](https://github.com/mastra-ai/mastra/commit/8846867ffa9a3746767618e314bebac08eb77d87), [`42a42cf`](https://github.com/mastra-ai/mastra/commit/42a42cf3132b9786feecbb8c13c583dce5b0e198), [`ae08bf0`](https://github.com/mastra-ai/mastra/commit/ae08bf0ebc6a4e4da992b711c4a389c32ba84cf4), [`21735a7`](https://github.com/mastra-ai/mastra/commit/21735a7ef306963554a69a89b44f06c3bcd85141), [`1d877b8`](https://github.com/mastra-ai/mastra/commit/1d877b8d7b536a251c1a7a18db7ddcf4f68d6f8b)]:
32
+ - @mastra/core@1.0.0-beta.7
33
+
3
34
  ## 1.0.0-beta.3
4
35
 
5
36
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -45,7 +45,7 @@ var MemoryStorageCloudflare = class extends storage.MemoryStorage {
45
45
  } catch (error$1) {
46
46
  const mastraError = new error.MastraError(
47
47
  {
48
- id: "CLOUDFLARE_STORAGE_GET_THREAD_BY_ID_FAILED",
48
+ id: storage.createStorageErrorId("CLOUDFLARE", "GET_THREAD_BY_ID", "FAILED"),
49
49
  domain: error.ErrorDomain.STORAGE,
50
50
  category: error.ErrorCategory.THIRD_PARTY,
51
51
  details: {
@@ -66,7 +66,7 @@ var MemoryStorageCloudflare = class extends storage.MemoryStorage {
66
66
  if (page < 0) {
67
67
  throw new error.MastraError(
68
68
  {
69
- id: "STORAGE_CLOUDFLARE_LIST_THREADS_BY_RESOURCE_ID_INVALID_PAGE",
69
+ id: storage.createStorageErrorId("CLOUDFLARE", "LIST_THREADS_BY_RESOURCE_ID", "INVALID_PAGE"),
70
70
  domain: error.ErrorDomain.STORAGE,
71
71
  category: error.ErrorCategory.USER,
72
72
  details: { page }
@@ -102,7 +102,7 @@ var MemoryStorageCloudflare = class extends storage.MemoryStorage {
102
102
  } catch (error$1) {
103
103
  throw new error.MastraError(
104
104
  {
105
- id: "CLOUDFLARE_STORAGE_LIST_THREADS_BY_RESOURCE_ID_FAILED",
105
+ id: storage.createStorageErrorId("CLOUDFLARE", "LIST_THREADS_BY_RESOURCE_ID", "FAILED"),
106
106
  domain: error.ErrorDomain.STORAGE,
107
107
  category: error.ErrorCategory.THIRD_PARTY,
108
108
  text: "Failed to get threads by resource ID with pagination"
@@ -118,7 +118,7 @@ var MemoryStorageCloudflare = class extends storage.MemoryStorage {
118
118
  } catch (error$1) {
119
119
  throw new error.MastraError(
120
120
  {
121
- id: "CLOUDFLARE_STORAGE_SAVE_THREAD_FAILED",
121
+ id: storage.createStorageErrorId("CLOUDFLARE", "SAVE_THREAD", "FAILED"),
122
122
  domain: error.ErrorDomain.STORAGE,
123
123
  category: error.ErrorCategory.THIRD_PARTY,
124
124
  details: {
@@ -153,7 +153,7 @@ var MemoryStorageCloudflare = class extends storage.MemoryStorage {
153
153
  } catch (error$1) {
154
154
  throw new error.MastraError(
155
155
  {
156
- id: "CLOUDFLARE_STORAGE_UPDATE_THREAD_FAILED",
156
+ id: storage.createStorageErrorId("CLOUDFLARE", "UPDATE_THREAD", "FAILED"),
157
157
  domain: error.ErrorDomain.STORAGE,
158
158
  category: error.ErrorCategory.THIRD_PARTY,
159
159
  details: {
@@ -202,7 +202,7 @@ var MemoryStorageCloudflare = class extends storage.MemoryStorage {
202
202
  } catch (error$1) {
203
203
  throw new error.MastraError(
204
204
  {
205
- id: "CLOUDFLARE_STORAGE_DELETE_THREAD_FAILED",
205
+ id: storage.createStorageErrorId("CLOUDFLARE", "DELETE_THREAD", "FAILED"),
206
206
  domain: error.ErrorDomain.STORAGE,
207
207
  category: error.ErrorCategory.THIRD_PARTY,
208
208
  details: {
@@ -407,7 +407,7 @@ var MemoryStorageCloudflare = class extends storage.MemoryStorage {
407
407
  } catch (error$1) {
408
408
  throw new error.MastraError(
409
409
  {
410
- id: "CLOUDFLARE_STORAGE_SAVE_MESSAGES_FAILED",
410
+ id: storage.createStorageErrorId("CLOUDFLARE", "SAVE_MESSAGES", "FAILED"),
411
411
  domain: error.ErrorDomain.STORAGE,
412
412
  category: error.ErrorCategory.THIRD_PARTY,
413
413
  details: {
@@ -427,7 +427,7 @@ var MemoryStorageCloudflare = class extends storage.MemoryStorage {
427
427
  } catch (error$1) {
428
428
  throw new error.MastraError(
429
429
  {
430
- id: "CLOUDFLARE_STORAGE_SAVE_MESSAGES_FAILED",
430
+ id: storage.createStorageErrorId("CLOUDFLARE", "SAVE_MESSAGES", "FAILED"),
431
431
  domain: error.ErrorDomain.STORAGE,
432
432
  category: error.ErrorCategory.THIRD_PARTY
433
433
  },
@@ -576,7 +576,7 @@ var MemoryStorageCloudflare = class extends storage.MemoryStorage {
576
576
  } catch (error$1) {
577
577
  const mastraError = new error.MastraError(
578
578
  {
579
- id: "CLOUDFLARE_STORAGE_LIST_MESSAGES_BY_ID_FAILED",
579
+ id: storage.createStorageErrorId("CLOUDFLARE", "LIST_MESSAGES_BY_ID", "FAILED"),
580
580
  domain: error.ErrorDomain.STORAGE,
581
581
  category: error.ErrorCategory.THIRD_PARTY,
582
582
  text: `Error retrieving messages by ID`,
@@ -598,7 +598,7 @@ var MemoryStorageCloudflare = class extends storage.MemoryStorage {
598
598
  if (threadIds.length === 0 || threadIds.some((id) => !isValidThreadId(id))) {
599
599
  throw new error.MastraError(
600
600
  {
601
- id: "STORAGE_CLOUDFLARE_LIST_MESSAGES_INVALID_THREAD_ID",
601
+ id: storage.createStorageErrorId("CLOUDFLARE", "LIST_MESSAGES", "INVALID_THREAD_ID"),
602
602
  domain: error.ErrorDomain.STORAGE,
603
603
  category: error.ErrorCategory.THIRD_PARTY,
604
604
  details: { threadId: Array.isArray(threadId) ? JSON.stringify(threadId) : String(threadId) }
@@ -612,7 +612,7 @@ var MemoryStorageCloudflare = class extends storage.MemoryStorage {
612
612
  if (page < 0) {
613
613
  throw new error.MastraError(
614
614
  {
615
- id: "STORAGE_CLOUDFLARE_LIST_MESSAGES_INVALID_PAGE",
615
+ id: storage.createStorageErrorId("CLOUDFLARE", "LIST_MESSAGES", "INVALID_PAGE"),
616
616
  domain: error.ErrorDomain.STORAGE,
617
617
  category: error.ErrorCategory.USER,
618
618
  details: { page }
@@ -760,7 +760,7 @@ var MemoryStorageCloudflare = class extends storage.MemoryStorage {
760
760
  } catch (error$1) {
761
761
  const mastraError = new error.MastraError(
762
762
  {
763
- id: "CLOUDFLARE_STORAGE_LIST_MESSAGES_FAILED",
763
+ id: storage.createStorageErrorId("CLOUDFLARE", "LIST_MESSAGES", "FAILED"),
764
764
  domain: error.ErrorDomain.STORAGE,
765
765
  category: error.ErrorCategory.THIRD_PARTY,
766
766
  text: `Failed to list messages for thread ${Array.isArray(threadId) ? threadId.join(",") : threadId}: ${error$1 instanceof Error ? error$1.message : String(error$1)}`,
@@ -882,7 +882,7 @@ var MemoryStorageCloudflare = class extends storage.MemoryStorage {
882
882
  } catch (error$1) {
883
883
  throw new error.MastraError(
884
884
  {
885
- id: "CLOUDFLARE_STORAGE_UPDATE_MESSAGES_FAILED",
885
+ id: storage.createStorageErrorId("CLOUDFLARE", "UPDATE_MESSAGES", "FAILED"),
886
886
  domain: error.ErrorDomain.STORAGE,
887
887
  category: error.ErrorCategory.THIRD_PARTY,
888
888
  text: "Failed to update messages"
@@ -905,7 +905,7 @@ var MemoryStorageCloudflare = class extends storage.MemoryStorage {
905
905
  } catch (error$1) {
906
906
  const mastraError = new error.MastraError(
907
907
  {
908
- id: "CLOUDFLARE_STORAGE_GET_RESOURCE_BY_ID_FAILED",
908
+ id: storage.createStorageErrorId("CLOUDFLARE", "GET_RESOURCE_BY_ID", "FAILED"),
909
909
  domain: error.ErrorDomain.STORAGE,
910
910
  category: error.ErrorCategory.THIRD_PARTY,
911
911
  details: {
@@ -934,7 +934,7 @@ var MemoryStorageCloudflare = class extends storage.MemoryStorage {
934
934
  } catch (error$1) {
935
935
  throw new error.MastraError(
936
936
  {
937
- id: "CLOUDFLARE_STORAGE_SAVE_RESOURCE_FAILED",
937
+ id: storage.createStorageErrorId("CLOUDFLARE", "SAVE_RESOURCE", "FAILED"),
938
938
  domain: error.ErrorDomain.STORAGE,
939
939
  category: error.ErrorCategory.THIRD_PARTY,
940
940
  details: {
@@ -1005,7 +1005,7 @@ var StoreOperationsCloudflare = class extends storage.StoreOperations {
1005
1005
  } catch (error$1) {
1006
1006
  throw new error.MastraError(
1007
1007
  {
1008
- id: "CLOUDFLARE_STORAGE_CLEAR_TABLE_FAILED",
1008
+ id: storage.createStorageErrorId("CLOUDFLARE", "CLEAR_TABLE", "FAILED"),
1009
1009
  domain: error.ErrorDomain.STORAGE,
1010
1010
  category: error.ErrorCategory.THIRD_PARTY,
1011
1011
  details: {
@@ -1025,7 +1025,7 @@ var StoreOperationsCloudflare = class extends storage.StoreOperations {
1025
1025
  } catch (error$1) {
1026
1026
  throw new error.MastraError(
1027
1027
  {
1028
- id: "CLOUDFLARE_STORAGE_DROP_TABLE_FAILED",
1028
+ id: storage.createStorageErrorId("CLOUDFLARE", "DROP_TABLE", "FAILED"),
1029
1029
  domain: error.ErrorDomain.STORAGE,
1030
1030
  category: error.ErrorCategory.THIRD_PARTY,
1031
1031
  details: {
@@ -1327,7 +1327,7 @@ var StoreOperationsCloudflare = class extends storage.StoreOperations {
1327
1327
  } catch (error$1) {
1328
1328
  throw new error.MastraError(
1329
1329
  {
1330
- id: "CLOUDFLARE_STORAGE_INSERT_FAILED",
1330
+ id: storage.createStorageErrorId("CLOUDFLARE", "INSERT", "FAILED"),
1331
1331
  domain: error.ErrorDomain.STORAGE,
1332
1332
  category: error.ErrorCategory.THIRD_PARTY,
1333
1333
  details: {
@@ -1347,7 +1347,7 @@ var StoreOperationsCloudflare = class extends storage.StoreOperations {
1347
1347
  } catch (error$1) {
1348
1348
  const mastraError = new error.MastraError(
1349
1349
  {
1350
- id: "CLOUDFLARE_STORAGE_LOAD_FAILED",
1350
+ id: storage.createStorageErrorId("CLOUDFLARE", "LOAD", "FAILED"),
1351
1351
  domain: error.ErrorDomain.STORAGE,
1352
1352
  category: error.ErrorCategory.THIRD_PARTY,
1353
1353
  details: {
@@ -1373,7 +1373,7 @@ var StoreOperationsCloudflare = class extends storage.StoreOperations {
1373
1373
  } catch (error$1) {
1374
1374
  throw new error.MastraError(
1375
1375
  {
1376
- id: "CLOUDFLARE_STORAGE_BATCH_INSERT_FAILED",
1376
+ id: storage.createStorageErrorId("CLOUDFLARE", "BATCH_INSERT", "FAILED"),
1377
1377
  domain: error.ErrorDomain.STORAGE,
1378
1378
  category: error.ErrorCategory.THIRD_PARTY,
1379
1379
  text: `Error in batch insert for table ${input.tableName}`,
@@ -1445,7 +1445,7 @@ var StoreOperationsCloudflare = class extends storage.StoreOperations {
1445
1445
  } catch (error$1) {
1446
1446
  throw new error.MastraError(
1447
1447
  {
1448
- id: "CLOUDFLARE_STORAGE_CREATE_TABLE_FAILED",
1448
+ id: storage.createStorageErrorId("CLOUDFLARE", "CREATE_TABLE", "FAILED"),
1449
1449
  domain: error.ErrorDomain.STORAGE,
1450
1450
  category: error.ErrorCategory.THIRD_PARTY,
1451
1451
  details: {
@@ -1477,7 +1477,7 @@ var StoreOperationsCloudflare = class extends storage.StoreOperations {
1477
1477
  } catch (error$1) {
1478
1478
  throw new error.MastraError(
1479
1479
  {
1480
- id: "CLOUDFLARE_STORAGE_LIST_NAMESPACE_KEYS_FAILED",
1480
+ id: storage.createStorageErrorId("CLOUDFLARE", "LIST_NAMESPACE_KEYS", "FAILED"),
1481
1481
  domain: error.ErrorDomain.STORAGE,
1482
1482
  category: error.ErrorCategory.THIRD_PARTY,
1483
1483
  details: {
@@ -1535,7 +1535,7 @@ var ScoresStorageCloudflare = class extends storage.ScoresStorage {
1535
1535
  } catch (error$1) {
1536
1536
  const mastraError = new error.MastraError(
1537
1537
  {
1538
- id: "CLOUDFLARE_STORAGE_SCORES_GET_SCORE_BY_ID_FAILED",
1538
+ id: storage.createStorageErrorId("CLOUDFLARE", "GET_SCORE_BY_ID", "FAILED"),
1539
1539
  domain: error.ErrorDomain.STORAGE,
1540
1540
  category: error.ErrorCategory.THIRD_PARTY,
1541
1541
  text: `Failed to get score by id: ${id}`
@@ -1554,7 +1554,7 @@ var ScoresStorageCloudflare = class extends storage.ScoresStorage {
1554
1554
  } catch (error$1) {
1555
1555
  throw new error.MastraError(
1556
1556
  {
1557
- id: "CLOUDFLARE_STORAGE_SAVE_SCORE_FAILED_INVALID_SCORE_PAYLOAD",
1557
+ id: storage.createStorageErrorId("CLOUDFLARE", "SAVE_SCORE", "VALIDATION_FAILED"),
1558
1558
  domain: error.ErrorDomain.STORAGE,
1559
1559
  category: error.ErrorCategory.USER,
1560
1560
  details: { scoreId: score.id }
@@ -1589,7 +1589,7 @@ var ScoresStorageCloudflare = class extends storage.ScoresStorage {
1589
1589
  } catch (error$1) {
1590
1590
  const mastraError = new error.MastraError(
1591
1591
  {
1592
- id: "CLOUDFLARE_STORAGE_SCORES_SAVE_SCORE_FAILED",
1592
+ id: storage.createStorageErrorId("CLOUDFLARE", "SAVE_SCORE", "FAILED"),
1593
1593
  domain: error.ErrorDomain.STORAGE,
1594
1594
  category: error.ErrorCategory.THIRD_PARTY,
1595
1595
  text: `Failed to save score: ${score.id}`
@@ -1649,7 +1649,7 @@ var ScoresStorageCloudflare = class extends storage.ScoresStorage {
1649
1649
  } catch (error$1) {
1650
1650
  const mastraError = new error.MastraError(
1651
1651
  {
1652
- id: "CLOUDFLARE_STORAGE_SCORES_GET_SCORES_BY_SCORER_ID_FAILED",
1652
+ id: storage.createStorageErrorId("CLOUDFLARE", "GET_SCORES_BY_SCORER_ID", "FAILED"),
1653
1653
  domain: error.ErrorDomain.STORAGE,
1654
1654
  category: error.ErrorCategory.THIRD_PARTY,
1655
1655
  text: `Failed to get scores by scorer id: ${scorerId}`
@@ -1697,7 +1697,7 @@ var ScoresStorageCloudflare = class extends storage.ScoresStorage {
1697
1697
  } catch (error$1) {
1698
1698
  const mastraError = new error.MastraError(
1699
1699
  {
1700
- id: "CLOUDFLARE_STORAGE_SCORES_GET_SCORES_BY_RUN_ID_FAILED",
1700
+ id: storage.createStorageErrorId("CLOUDFLARE", "GET_SCORES_BY_RUN_ID", "FAILED"),
1701
1701
  domain: error.ErrorDomain.STORAGE,
1702
1702
  category: error.ErrorCategory.THIRD_PARTY,
1703
1703
  text: `Failed to get scores by run id: ${runId}`
@@ -1746,7 +1746,7 @@ var ScoresStorageCloudflare = class extends storage.ScoresStorage {
1746
1746
  } catch (error$1) {
1747
1747
  const mastraError = new error.MastraError(
1748
1748
  {
1749
- id: "CLOUDFLARE_STORAGE_SCORES_GET_SCORES_BY_ENTITY_ID_FAILED",
1749
+ id: storage.createStorageErrorId("CLOUDFLARE", "GET_SCORES_BY_ENTITY_ID", "FAILED"),
1750
1750
  domain: error.ErrorDomain.STORAGE,
1751
1751
  category: error.ErrorCategory.THIRD_PARTY,
1752
1752
  text: `Failed to get scores by entity id: ${entityId}, type: ${entityType}`
@@ -1795,7 +1795,7 @@ var ScoresStorageCloudflare = class extends storage.ScoresStorage {
1795
1795
  } catch (error$1) {
1796
1796
  const mastraError = new error.MastraError(
1797
1797
  {
1798
- id: "CLOUDFLARE_STORAGE_SCORES_GET_SCORES_BY_SPAN_FAILED",
1798
+ id: storage.createStorageErrorId("CLOUDFLARE", "GET_SCORES_BY_SPAN", "FAILED"),
1799
1799
  domain: error.ErrorDomain.STORAGE,
1800
1800
  category: error.ErrorCategory.THIRD_PARTY,
1801
1801
  text: `Failed to get scores by span: traceId=${traceId}, spanId=${spanId}`
@@ -1854,7 +1854,7 @@ var WorkflowsStorageCloudflare = class extends storage.WorkflowsStorage {
1854
1854
  } catch (error$1) {
1855
1855
  throw new error.MastraError(
1856
1856
  {
1857
- id: "CLOUDFLARE_STORAGE_PERSIST_WORKFLOW_SNAPSHOT_FAILED",
1857
+ id: storage.createStorageErrorId("CLOUDFLARE", "PERSIST_WORKFLOW_SNAPSHOT", "FAILED"),
1858
1858
  domain: error.ErrorDomain.STORAGE,
1859
1859
  category: error.ErrorCategory.THIRD_PARTY,
1860
1860
  text: `Error persisting workflow snapshot for workflow ${params.workflowName}, run ${params.runId}`,
@@ -1879,7 +1879,7 @@ var WorkflowsStorageCloudflare = class extends storage.WorkflowsStorage {
1879
1879
  } catch (error$1) {
1880
1880
  const mastraError = new error.MastraError(
1881
1881
  {
1882
- id: "CLOUDFLARE_STORAGE_LOAD_WORKFLOW_SNAPSHOT_FAILED",
1882
+ id: storage.createStorageErrorId("CLOUDFLARE", "LOAD_WORKFLOW_SNAPSHOT", "FAILED"),
1883
1883
  domain: error.ErrorDomain.STORAGE,
1884
1884
  category: error.ErrorCategory.THIRD_PARTY,
1885
1885
  text: `Error loading workflow snapshot for workflow ${params.workflowName}, run ${params.runId}`,
@@ -1938,7 +1938,7 @@ var WorkflowsStorageCloudflare = class extends storage.WorkflowsStorage {
1938
1938
  if (page < 0 || !Number.isInteger(page)) {
1939
1939
  throw new error.MastraError(
1940
1940
  {
1941
- id: "CLOUDFLARE_STORE_INVALID_PAGE",
1941
+ id: storage.createStorageErrorId("CLOUDFLARE", "LIST_WORKFLOW_RUNS", "INVALID_PAGE"),
1942
1942
  domain: error.ErrorDomain.STORAGE,
1943
1943
  category: error.ErrorCategory.USER,
1944
1944
  details: { page }
@@ -1993,7 +1993,7 @@ var WorkflowsStorageCloudflare = class extends storage.WorkflowsStorage {
1993
1993
  } catch (error$1) {
1994
1994
  const mastraError = new error.MastraError(
1995
1995
  {
1996
- id: "CLOUDFLARE_STORAGE_LIST_WORKFLOW_RUNS_FAILED",
1996
+ id: storage.createStorageErrorId("CLOUDFLARE", "LIST_WORKFLOW_RUNS", "FAILED"),
1997
1997
  domain: error.ErrorDomain.STORAGE,
1998
1998
  category: error.ErrorCategory.THIRD_PARTY
1999
1999
  },
@@ -2031,7 +2031,7 @@ var WorkflowsStorageCloudflare = class extends storage.WorkflowsStorage {
2031
2031
  } catch (error$1) {
2032
2032
  const mastraError = new error.MastraError(
2033
2033
  {
2034
- id: "CLOUDFLARE_STORAGE_GET_WORKFLOW_RUN_BY_ID_FAILED",
2034
+ id: storage.createStorageErrorId("CLOUDFLARE", "GET_WORKFLOW_RUN_BY_ID", "FAILED"),
2035
2035
  domain: error.ErrorDomain.STORAGE,
2036
2036
  category: error.ErrorCategory.THIRD_PARTY,
2037
2037
  details: {
@@ -2093,7 +2093,7 @@ var CloudflareStore = class extends storage.MastraStorage {
2093
2093
  return supports;
2094
2094
  }
2095
2095
  constructor(config) {
2096
- super({ id: config.id, name: "Cloudflare" });
2096
+ super({ id: config.id, name: "Cloudflare", disableInit: config.disableInit });
2097
2097
  try {
2098
2098
  if (isWorkersConfig(config)) {
2099
2099
  this.validateWorkersConfig(config);
@@ -2133,7 +2133,7 @@ var CloudflareStore = class extends storage.MastraStorage {
2133
2133
  } catch (error$1) {
2134
2134
  throw new error.MastraError(
2135
2135
  {
2136
- id: "CLOUDFLARE_STORAGE_INIT_FAILED",
2136
+ id: storage.createStorageErrorId("CLOUDFLARE", "INIT", "FAILED"),
2137
2137
  domain: error.ErrorDomain.STORAGE,
2138
2138
  category: error.ErrorCategory.THIRD_PARTY
2139
2139
  },