@mastra/clickhouse 1.0.0-beta.2 → 1.0.0-beta.3

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/clickhouse
2
2
 
3
+ ## 1.0.0-beta.3
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.2
4
35
 
5
36
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -116,7 +116,7 @@ var MemoryStorageClickhouse = class extends storage.MemoryStorage {
116
116
  } catch (error$1) {
117
117
  throw new error.MastraError(
118
118
  {
119
- id: "CLICKHOUSE_STORAGE_LIST_MESSAGES_BY_ID_FAILED",
119
+ id: storage.createStorageErrorId("CLICKHOUSE", "LIST_MESSAGES_BY_ID", "FAILED"),
120
120
  domain: error.ErrorDomain.STORAGE,
121
121
  category: error.ErrorCategory.THIRD_PARTY,
122
122
  details: { messageIds: JSON.stringify(messageIds) }
@@ -132,7 +132,7 @@ var MemoryStorageClickhouse = class extends storage.MemoryStorage {
132
132
  if (page < 0) {
133
133
  throw new error.MastraError(
134
134
  {
135
- id: "STORAGE_CLICKHOUSE_LIST_MESSAGES_INVALID_PAGE",
135
+ id: storage.createStorageErrorId("CLICKHOUSE", "LIST_MESSAGES", "INVALID_PAGE"),
136
136
  domain: error.ErrorDomain.STORAGE,
137
137
  category: error.ErrorCategory.USER,
138
138
  details: { page }
@@ -143,7 +143,7 @@ var MemoryStorageClickhouse = class extends storage.MemoryStorage {
143
143
  if (threadIds.length === 0) {
144
144
  throw new error.MastraError(
145
145
  {
146
- id: "STORAGE_CLICKHOUSE_LIST_MESSAGES_INVALID_THREAD_ID",
146
+ id: storage.createStorageErrorId("CLICKHOUSE", "LIST_MESSAGES", "INVALID_THREAD_ID"),
147
147
  domain: error.ErrorDomain.STORAGE,
148
148
  category: error.ErrorCategory.THIRD_PARTY,
149
149
  details: { threadId: Array.isArray(threadId) ? JSON.stringify(threadId) : String(threadId) }
@@ -348,7 +348,7 @@ var MemoryStorageClickhouse = class extends storage.MemoryStorage {
348
348
  } catch (error$1) {
349
349
  const mastraError = new error.MastraError(
350
350
  {
351
- id: "STORAGE_CLICKHOUSE_STORE_LIST_MESSAGES_FAILED",
351
+ id: storage.createStorageErrorId("CLICKHOUSE", "LIST_MESSAGES", "FAILED"),
352
352
  domain: error.ErrorDomain.STORAGE,
353
353
  category: error.ErrorCategory.THIRD_PARTY,
354
354
  details: {
@@ -511,7 +511,7 @@ var MemoryStorageClickhouse = class extends storage.MemoryStorage {
511
511
  } catch (error$1) {
512
512
  throw new error.MastraError(
513
513
  {
514
- id: "CLICKHOUSE_STORAGE_SAVE_MESSAGES_FAILED",
514
+ id: storage.createStorageErrorId("CLICKHOUSE", "SAVE_MESSAGES", "FAILED"),
515
515
  domain: error.ErrorDomain.STORAGE,
516
516
  category: error.ErrorCategory.THIRD_PARTY
517
517
  },
@@ -556,7 +556,7 @@ var MemoryStorageClickhouse = class extends storage.MemoryStorage {
556
556
  } catch (error$1) {
557
557
  throw new error.MastraError(
558
558
  {
559
- id: "CLICKHOUSE_STORAGE_GET_THREAD_BY_ID_FAILED",
559
+ id: storage.createStorageErrorId("CLICKHOUSE", "GET_THREAD_BY_ID", "FAILED"),
560
560
  domain: error.ErrorDomain.STORAGE,
561
561
  category: error.ErrorCategory.THIRD_PARTY,
562
562
  details: { threadId }
@@ -589,7 +589,7 @@ var MemoryStorageClickhouse = class extends storage.MemoryStorage {
589
589
  } catch (error$1) {
590
590
  throw new error.MastraError(
591
591
  {
592
- id: "CLICKHOUSE_STORAGE_SAVE_THREAD_FAILED",
592
+ id: storage.createStorageErrorId("CLICKHOUSE", "SAVE_THREAD", "FAILED"),
593
593
  domain: error.ErrorDomain.STORAGE,
594
594
  category: error.ErrorCategory.THIRD_PARTY,
595
595
  details: { threadId: thread.id }
@@ -641,7 +641,7 @@ var MemoryStorageClickhouse = class extends storage.MemoryStorage {
641
641
  } catch (error$1) {
642
642
  throw new error.MastraError(
643
643
  {
644
- id: "CLICKHOUSE_STORAGE_UPDATE_THREAD_FAILED",
644
+ id: storage.createStorageErrorId("CLICKHOUSE", "UPDATE_THREAD", "FAILED"),
645
645
  domain: error.ErrorDomain.STORAGE,
646
646
  category: error.ErrorCategory.THIRD_PARTY,
647
647
  details: { threadId: id, title }
@@ -669,7 +669,7 @@ var MemoryStorageClickhouse = class extends storage.MemoryStorage {
669
669
  } catch (error$1) {
670
670
  throw new error.MastraError(
671
671
  {
672
- id: "CLICKHOUSE_STORAGE_DELETE_THREAD_FAILED",
672
+ id: storage.createStorageErrorId("CLICKHOUSE", "DELETE_THREAD", "FAILED"),
673
673
  domain: error.ErrorDomain.STORAGE,
674
674
  category: error.ErrorCategory.THIRD_PARTY,
675
675
  details: { threadId }
@@ -684,7 +684,7 @@ var MemoryStorageClickhouse = class extends storage.MemoryStorage {
684
684
  if (page < 0) {
685
685
  throw new error.MastraError(
686
686
  {
687
- id: "STORAGE_CLICKHOUSE_LIST_THREADS_BY_RESOURCE_ID_INVALID_PAGE",
687
+ id: storage.createStorageErrorId("CLICKHOUSE", "LIST_THREADS_BY_RESOURCE_ID", "INVALID_PAGE"),
688
688
  domain: error.ErrorDomain.STORAGE,
689
689
  category: error.ErrorCategory.USER,
690
690
  details: { page }
@@ -769,7 +769,7 @@ var MemoryStorageClickhouse = class extends storage.MemoryStorage {
769
769
  } catch (error$1) {
770
770
  throw new error.MastraError(
771
771
  {
772
- id: "CLICKHOUSE_STORAGE_LIST_THREADS_BY_RESOURCE_ID_FAILED",
772
+ id: storage.createStorageErrorId("CLICKHOUSE", "LIST_THREADS_BY_RESOURCE_ID", "FAILED"),
773
773
  domain: error.ErrorDomain.STORAGE,
774
774
  category: error.ErrorCategory.THIRD_PARTY,
775
775
  details: { resourceId, page }
@@ -1051,7 +1051,7 @@ var MemoryStorageClickhouse = class extends storage.MemoryStorage {
1051
1051
  } catch (error$1) {
1052
1052
  throw new error.MastraError(
1053
1053
  {
1054
- id: "CLICKHOUSE_STORAGE_UPDATE_MESSAGES_FAILED",
1054
+ id: storage.createStorageErrorId("CLICKHOUSE", "UPDATE_MESSAGES", "FAILED"),
1055
1055
  domain: error.ErrorDomain.STORAGE,
1056
1056
  category: error.ErrorCategory.THIRD_PARTY,
1057
1057
  details: { messageIds: messages.map((m) => m.id).join(",") }
@@ -1087,7 +1087,7 @@ var MemoryStorageClickhouse = class extends storage.MemoryStorage {
1087
1087
  } catch (error$1) {
1088
1088
  throw new error.MastraError(
1089
1089
  {
1090
- id: "CLICKHOUSE_STORAGE_GET_RESOURCE_BY_ID_FAILED",
1090
+ id: storage.createStorageErrorId("CLICKHOUSE", "GET_RESOURCE_BY_ID", "FAILED"),
1091
1091
  domain: error.ErrorDomain.STORAGE,
1092
1092
  category: error.ErrorCategory.THIRD_PARTY,
1093
1093
  details: { resourceId }
@@ -1120,7 +1120,7 @@ var MemoryStorageClickhouse = class extends storage.MemoryStorage {
1120
1120
  } catch (error$1) {
1121
1121
  throw new error.MastraError(
1122
1122
  {
1123
- id: "CLICKHOUSE_STORAGE_SAVE_RESOURCE_FAILED",
1123
+ id: storage.createStorageErrorId("CLICKHOUSE", "SAVE_RESOURCE", "FAILED"),
1124
1124
  domain: error.ErrorDomain.STORAGE,
1125
1125
  category: error.ErrorCategory.THIRD_PARTY,
1126
1126
  details: { resourceId: resource.id }
@@ -1186,7 +1186,7 @@ var MemoryStorageClickhouse = class extends storage.MemoryStorage {
1186
1186
  } catch (error$1) {
1187
1187
  throw new error.MastraError(
1188
1188
  {
1189
- id: "CLICKHOUSE_STORAGE_UPDATE_RESOURCE_FAILED",
1189
+ id: storage.createStorageErrorId("CLICKHOUSE", "UPDATE_RESOURCE", "FAILED"),
1190
1190
  domain: error.ErrorDomain.STORAGE,
1191
1191
  category: error.ErrorCategory.THIRD_PARTY,
1192
1192
  details: { resourceId }
@@ -1274,7 +1274,7 @@ var StoreOperationsClickhouse = class extends storage.StoreOperations {
1274
1274
  } catch (error$1) {
1275
1275
  throw new error.MastraError(
1276
1276
  {
1277
- id: "CLICKHOUSE_STORAGE_CREATE_TABLE_FAILED",
1277
+ id: storage.createStorageErrorId("CLICKHOUSE", "CREATE_TABLE", "FAILED"),
1278
1278
  domain: error.ErrorDomain.STORAGE,
1279
1279
  category: error.ErrorCategory.THIRD_PARTY,
1280
1280
  details: { tableName }
@@ -1313,7 +1313,7 @@ var StoreOperationsClickhouse = class extends storage.StoreOperations {
1313
1313
  } catch (error$1) {
1314
1314
  throw new error.MastraError(
1315
1315
  {
1316
- id: "CLICKHOUSE_STORAGE_ALTER_TABLE_FAILED",
1316
+ id: storage.createStorageErrorId("CLICKHOUSE", "ALTER_TABLE", "FAILED"),
1317
1317
  domain: error.ErrorDomain.STORAGE,
1318
1318
  category: error.ErrorCategory.THIRD_PARTY,
1319
1319
  details: { tableName }
@@ -1337,7 +1337,7 @@ var StoreOperationsClickhouse = class extends storage.StoreOperations {
1337
1337
  } catch (error$1) {
1338
1338
  throw new error.MastraError(
1339
1339
  {
1340
- id: "CLICKHOUSE_STORAGE_CLEAR_TABLE_FAILED",
1340
+ id: storage.createStorageErrorId("CLICKHOUSE", "CLEAR_TABLE", "FAILED"),
1341
1341
  domain: error.ErrorDomain.STORAGE,
1342
1342
  category: error.ErrorCategory.THIRD_PARTY,
1343
1343
  details: { tableName }
@@ -1376,7 +1376,7 @@ var StoreOperationsClickhouse = class extends storage.StoreOperations {
1376
1376
  } catch (error$1) {
1377
1377
  throw new error.MastraError(
1378
1378
  {
1379
- id: "CLICKHOUSE_STORAGE_INSERT_FAILED",
1379
+ id: storage.createStorageErrorId("CLICKHOUSE", "INSERT", "FAILED"),
1380
1380
  domain: error.ErrorDomain.STORAGE,
1381
1381
  category: error.ErrorCategory.THIRD_PARTY,
1382
1382
  details: { tableName }
@@ -1409,7 +1409,7 @@ var StoreOperationsClickhouse = class extends storage.StoreOperations {
1409
1409
  } catch (error$1) {
1410
1410
  throw new error.MastraError(
1411
1411
  {
1412
- id: "CLICKHOUSE_STORAGE_BATCH_INSERT_FAILED",
1412
+ id: storage.createStorageErrorId("CLICKHOUSE", "BATCH_INSERT", "FAILED"),
1413
1413
  domain: error.ErrorDomain.STORAGE,
1414
1414
  category: error.ErrorCategory.THIRD_PARTY,
1415
1415
  details: { tableName }
@@ -1460,7 +1460,7 @@ var StoreOperationsClickhouse = class extends storage.StoreOperations {
1460
1460
  } catch (error$1) {
1461
1461
  throw new error.MastraError(
1462
1462
  {
1463
- id: "CLICKHOUSE_STORAGE_LOAD_FAILED",
1463
+ id: storage.createStorageErrorId("CLICKHOUSE", "LOAD", "FAILED"),
1464
1464
  domain: error.ErrorDomain.STORAGE,
1465
1465
  category: error.ErrorCategory.THIRD_PARTY,
1466
1466
  details: { tableName }
@@ -1510,7 +1510,7 @@ var ScoresStorageClickhouse = class extends storage.ScoresStorage {
1510
1510
  } catch (error$1) {
1511
1511
  throw new error.MastraError(
1512
1512
  {
1513
- id: "CLICKHOUSE_STORAGE_GET_SCORE_BY_ID_FAILED",
1513
+ id: storage.createStorageErrorId("CLICKHOUSE", "GET_SCORE_BY_ID", "FAILED"),
1514
1514
  domain: error.ErrorDomain.STORAGE,
1515
1515
  category: error.ErrorCategory.THIRD_PARTY,
1516
1516
  details: { scoreId: id }
@@ -1526,7 +1526,7 @@ var ScoresStorageClickhouse = class extends storage.ScoresStorage {
1526
1526
  } catch (error$1) {
1527
1527
  throw new error.MastraError(
1528
1528
  {
1529
- id: "CLICKHOUSE_STORAGE_SAVE_SCORE_FAILED_INVALID_SCORE_PAYLOAD",
1529
+ id: storage.createStorageErrorId("CLICKHOUSE", "SAVE_SCORE", "VALIDATION_FAILED"),
1530
1530
  domain: error.ErrorDomain.STORAGE,
1531
1531
  category: error.ErrorCategory.USER,
1532
1532
  details: { scoreId: score.id }
@@ -1558,7 +1558,7 @@ var ScoresStorageClickhouse = class extends storage.ScoresStorage {
1558
1558
  } catch (error$1) {
1559
1559
  throw new error.MastraError(
1560
1560
  {
1561
- id: "CLICKHOUSE_STORAGE_SAVE_SCORE_FAILED",
1561
+ id: storage.createStorageErrorId("CLICKHOUSE", "SAVE_SCORE", "FAILED"),
1562
1562
  domain: error.ErrorDomain.STORAGE,
1563
1563
  category: error.ErrorCategory.THIRD_PARTY,
1564
1564
  details: { scoreId: score.id }
@@ -1628,7 +1628,7 @@ var ScoresStorageClickhouse = class extends storage.ScoresStorage {
1628
1628
  } catch (error$1) {
1629
1629
  throw new error.MastraError(
1630
1630
  {
1631
- id: "CLICKHOUSE_STORAGE_GET_SCORES_BY_RUN_ID_FAILED",
1631
+ id: storage.createStorageErrorId("CLICKHOUSE", "LIST_SCORES_BY_RUN_ID", "FAILED"),
1632
1632
  domain: error.ErrorDomain.STORAGE,
1633
1633
  category: error.ErrorCategory.THIRD_PARTY,
1634
1634
  details: { runId }
@@ -1719,7 +1719,7 @@ var ScoresStorageClickhouse = class extends storage.ScoresStorage {
1719
1719
  } catch (error$1) {
1720
1720
  throw new error.MastraError(
1721
1721
  {
1722
- id: "CLICKHOUSE_STORAGE_GET_SCORES_BY_SCORER_ID_FAILED",
1722
+ id: storage.createStorageErrorId("CLICKHOUSE", "LIST_SCORES_BY_SCORER_ID", "FAILED"),
1723
1723
  domain: error.ErrorDomain.STORAGE,
1724
1724
  category: error.ErrorCategory.THIRD_PARTY,
1725
1725
  details: { scorerId }
@@ -1791,7 +1791,7 @@ var ScoresStorageClickhouse = class extends storage.ScoresStorage {
1791
1791
  } catch (error$1) {
1792
1792
  throw new error.MastraError(
1793
1793
  {
1794
- id: "CLICKHOUSE_STORAGE_GET_SCORES_BY_ENTITY_ID_FAILED",
1794
+ id: storage.createStorageErrorId("CLICKHOUSE", "LIST_SCORES_BY_ENTITY_ID", "FAILED"),
1795
1795
  domain: error.ErrorDomain.STORAGE,
1796
1796
  category: error.ErrorCategory.THIRD_PARTY,
1797
1797
  details: { entityId, entityType }
@@ -1866,7 +1866,7 @@ var ScoresStorageClickhouse = class extends storage.ScoresStorage {
1866
1866
  } catch (error$1) {
1867
1867
  throw new error.MastraError(
1868
1868
  {
1869
- id: "CLICKHOUSE_STORAGE_GET_SCORES_BY_SPAN_FAILED",
1869
+ id: storage.createStorageErrorId("CLICKHOUSE", "LIST_SCORES_BY_SPAN", "FAILED"),
1870
1870
  domain: error.ErrorDomain.STORAGE,
1871
1871
  category: error.ErrorCategory.THIRD_PARTY,
1872
1872
  details: { traceId, spanId }
@@ -1891,14 +1891,24 @@ var WorkflowsStorageClickhouse = class extends storage.WorkflowsStorage {
1891
1891
  // result,
1892
1892
  // requestContext,
1893
1893
  }) {
1894
- throw new Error("Method not implemented.");
1894
+ throw new error.MastraError({
1895
+ id: storage.createStorageErrorId("CLICKHOUSE", "UPDATE_WORKFLOW_RESULTS", "NOT_IMPLEMENTED"),
1896
+ domain: error.ErrorDomain.STORAGE,
1897
+ category: error.ErrorCategory.SYSTEM,
1898
+ text: "Method not implemented."
1899
+ });
1895
1900
  }
1896
1901
  updateWorkflowState({
1897
1902
  // workflowName,
1898
1903
  // runId,
1899
1904
  // opts,
1900
1905
  }) {
1901
- throw new Error("Method not implemented.");
1906
+ throw new error.MastraError({
1907
+ id: storage.createStorageErrorId("CLICKHOUSE", "UPDATE_WORKFLOW_STATE", "NOT_IMPLEMENTED"),
1908
+ domain: error.ErrorDomain.STORAGE,
1909
+ category: error.ErrorCategory.SYSTEM,
1910
+ text: "Method not implemented."
1911
+ });
1902
1912
  }
1903
1913
  async persistWorkflowSnapshot({
1904
1914
  workflowName,
@@ -1939,7 +1949,7 @@ var WorkflowsStorageClickhouse = class extends storage.WorkflowsStorage {
1939
1949
  } catch (error$1) {
1940
1950
  throw new error.MastraError(
1941
1951
  {
1942
- id: "CLICKHOUSE_STORAGE_PERSIST_WORKFLOW_SNAPSHOT_FAILED",
1952
+ id: storage.createStorageErrorId("CLICKHOUSE", "PERSIST_WORKFLOW_SNAPSHOT", "FAILED"),
1943
1953
  domain: error.ErrorDomain.STORAGE,
1944
1954
  category: error.ErrorCategory.THIRD_PARTY,
1945
1955
  details: { workflowName, runId }
@@ -1967,7 +1977,7 @@ var WorkflowsStorageClickhouse = class extends storage.WorkflowsStorage {
1967
1977
  } catch (error$1) {
1968
1978
  throw new error.MastraError(
1969
1979
  {
1970
- id: "CLICKHOUSE_STORAGE_LOAD_WORKFLOW_SNAPSHOT_FAILED",
1980
+ id: storage.createStorageErrorId("CLICKHOUSE", "LOAD_WORKFLOW_SNAPSHOT", "FAILED"),
1971
1981
  domain: error.ErrorDomain.STORAGE,
1972
1982
  category: error.ErrorCategory.THIRD_PARTY,
1973
1983
  details: { workflowName, runId }
@@ -2074,7 +2084,7 @@ var WorkflowsStorageClickhouse = class extends storage.WorkflowsStorage {
2074
2084
  } catch (error$1) {
2075
2085
  throw new error.MastraError(
2076
2086
  {
2077
- id: "CLICKHOUSE_STORAGE_LIST_WORKFLOW_RUNS_FAILED",
2087
+ id: storage.createStorageErrorId("CLICKHOUSE", "LIST_WORKFLOW_RUNS", "FAILED"),
2078
2088
  domain: error.ErrorDomain.STORAGE,
2079
2089
  category: error.ErrorCategory.THIRD_PARTY,
2080
2090
  details: { workflowName: workflowName ?? "", resourceId: resourceId ?? "" }
@@ -2123,7 +2133,7 @@ var WorkflowsStorageClickhouse = class extends storage.WorkflowsStorage {
2123
2133
  } catch (error$1) {
2124
2134
  throw new error.MastraError(
2125
2135
  {
2126
- id: "CLICKHOUSE_STORAGE_GET_WORKFLOW_RUN_BY_ID_FAILED",
2136
+ id: storage.createStorageErrorId("CLICKHOUSE", "GET_WORKFLOW_RUN_BY_ID", "FAILED"),
2127
2137
  domain: error.ErrorDomain.STORAGE,
2128
2138
  category: error.ErrorCategory.THIRD_PARTY,
2129
2139
  details: { runId: runId ?? "", workflowName: workflowName ?? "" }
@@ -2140,7 +2150,7 @@ var ClickhouseStore = class extends storage.MastraStorage {
2140
2150
  ttl = {};
2141
2151
  stores;
2142
2152
  constructor(config) {
2143
- super({ id: config.id, name: "ClickhouseStore" });
2153
+ super({ id: config.id, name: "ClickhouseStore", disableInit: config.disableInit });
2144
2154
  this.db = client.createClient({
2145
2155
  url: config.url,
2146
2156
  username: config.username,
@@ -2186,7 +2196,7 @@ var ClickhouseStore = class extends storage.MastraStorage {
2186
2196
  } catch (error$1) {
2187
2197
  throw new error.MastraError(
2188
2198
  {
2189
- id: "CLICKHOUSE_STORAGE_OPTIMIZE_TABLE_FAILED",
2199
+ id: storage.createStorageErrorId("CLICKHOUSE", "OPTIMIZE_TABLE", "FAILED"),
2190
2200
  domain: error.ErrorDomain.STORAGE,
2191
2201
  category: error.ErrorCategory.THIRD_PARTY,
2192
2202
  details: { tableName }
@@ -2203,7 +2213,7 @@ var ClickhouseStore = class extends storage.MastraStorage {
2203
2213
  } catch (error$1) {
2204
2214
  throw new error.MastraError(
2205
2215
  {
2206
- id: "CLICKHOUSE_STORAGE_MATERIALIZE_TTL_FAILED",
2216
+ id: storage.createStorageErrorId("CLICKHOUSE", "MATERIALIZE_TTL", "FAILED"),
2207
2217
  domain: error.ErrorDomain.STORAGE,
2208
2218
  category: error.ErrorCategory.THIRD_PARTY,
2209
2219
  details: { tableName }