@mastra/clickhouse 0.0.0-trigger-playground-ui-package-20250506151043 → 0.0.0-vector-query-sources-20250516172905

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,119 @@
1
1
  # @mastra/clickhouse
2
2
 
3
- ## 0.0.0-trigger-playground-ui-package-20250506151043
3
+ ## 0.0.0-vector-query-sources-20250516172905
4
+
5
+ ### Patch Changes
6
+
7
+ - eabdcd9: [MASTRA-3451] SQL Injection Protection
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-query-sources-20250516172905
14
+
15
+ ## 0.3.4
16
+
17
+ ### Patch Changes
18
+
19
+ - 302a9f0: fix: do not partition clickhouse trace table
20
+ - Updated dependencies [396be50]
21
+ - Updated dependencies [ab80e7e]
22
+ - Updated dependencies [c3bd795]
23
+ - Updated dependencies [da082f8]
24
+ - Updated dependencies [a5810ce]
25
+ - Updated dependencies [3e9c131]
26
+ - Updated dependencies [3171b5b]
27
+ - Updated dependencies [973e5ac]
28
+ - Updated dependencies [daf942f]
29
+ - Updated dependencies [0b8b868]
30
+ - Updated dependencies [9e1eff5]
31
+ - Updated dependencies [6fa1ad1]
32
+ - Updated dependencies [c28d7a0]
33
+ - Updated dependencies [edf1e88]
34
+ - @mastra/core@0.9.4
35
+
36
+ ## 0.3.4-alpha.4
37
+
38
+ ### Patch Changes
39
+
40
+ - Updated dependencies [3e9c131]
41
+ - @mastra/core@0.9.4-alpha.4
42
+
43
+ ## 0.3.4-alpha.3
44
+
45
+ ### Patch Changes
46
+
47
+ - 302a9f0: fix: do not partition clickhouse trace table
48
+ - Updated dependencies [396be50]
49
+ - Updated dependencies [c3bd795]
50
+ - Updated dependencies [da082f8]
51
+ - Updated dependencies [a5810ce]
52
+ - @mastra/core@0.9.4-alpha.3
53
+
54
+ ## 0.3.4-alpha.2
55
+
56
+ ### Patch Changes
57
+
58
+ - Updated dependencies [3171b5b]
59
+ - Updated dependencies [973e5ac]
60
+ - Updated dependencies [9e1eff5]
61
+ - @mastra/core@0.9.4-alpha.2
62
+
63
+ ## 0.3.4-alpha.1
64
+
65
+ ### Patch Changes
66
+
67
+ - Updated dependencies [ab80e7e]
68
+ - Updated dependencies [6fa1ad1]
69
+ - Updated dependencies [c28d7a0]
70
+ - Updated dependencies [edf1e88]
71
+ - @mastra/core@0.9.4-alpha.1
72
+
73
+ ## 0.3.4-alpha.0
74
+
75
+ ### Patch Changes
76
+
77
+ - Updated dependencies [daf942f]
78
+ - Updated dependencies [0b8b868]
79
+ - @mastra/core@0.9.4-alpha.0
80
+
81
+ ## 0.3.3
82
+
83
+ ### Patch Changes
84
+
85
+ - Updated dependencies [e450778]
86
+ - Updated dependencies [8902157]
87
+ - Updated dependencies [ca0dc88]
88
+ - Updated dependencies [526c570]
89
+ - Updated dependencies [d7a6a33]
90
+ - Updated dependencies [9cd1a46]
91
+ - Updated dependencies [b5d2de0]
92
+ - Updated dependencies [644f8ad]
93
+ - Updated dependencies [70dbf51]
94
+ - @mastra/core@0.9.3
95
+
96
+ ## 0.3.3-alpha.1
97
+
98
+ ### Patch Changes
99
+
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
106
+
107
+ ## 0.3.3-alpha.0
108
+
109
+ ### Patch Changes
110
+
111
+ - Updated dependencies [526c570]
112
+ - Updated dependencies [b5d2de0]
113
+ - Updated dependencies [644f8ad]
114
+ - @mastra/core@0.9.3-alpha.0
115
+
116
+ ## 0.3.2
4
117
 
5
118
  ### Patch Changes
6
119
 
@@ -20,8 +133,20 @@
20
133
  - Updated dependencies [17826a9]
21
134
  - Updated dependencies [7d8b7c7]
22
135
  - Updated dependencies [fba031f]
136
+ - Updated dependencies [3a5f1e1]
23
137
  - Updated dependencies [51e6923]
24
- - @mastra/core@0.0.0-trigger-playground-ui-package-20250506151043
138
+ - Updated dependencies [8398d89]
139
+ - @mastra/core@0.9.2
140
+
141
+ ## 0.3.2-alpha.6
142
+
143
+ ### Patch Changes
144
+
145
+ - Updated dependencies [6052aa6]
146
+ - Updated dependencies [7d8b7c7]
147
+ - Updated dependencies [3a5f1e1]
148
+ - Updated dependencies [8398d89]
149
+ - @mastra/core@0.9.2-alpha.6
25
150
 
26
151
  ## 0.3.2-alpha.5
27
152
 
package/dist/index.cjs CHANGED
@@ -237,7 +237,6 @@ var ClickhouseStore = class extends storage.MastraStorage {
237
237
  ${["id String"].concat(columns)}
238
238
  )
239
239
  ENGINE = ${TABLE_ENGINES[tableName]}
240
- PARTITION BY "createdAt"
241
240
  PRIMARY KEY (createdAt, run_id, workflow_name)
242
241
  ORDER BY (createdAt, run_id, workflow_name)
243
242
  ${rowTtl ? `TTL toDateTime(${rowTtl.ttlKey ?? "createdAt"}) + INTERVAL ${rowTtl.interval} ${rowTtl.unit}` : ""}
@@ -247,7 +246,6 @@ var ClickhouseStore = class extends storage.MastraStorage {
247
246
  ${columns}
248
247
  )
249
248
  ENGINE = ${TABLE_ENGINES[tableName]}
250
- PARTITION BY "createdAt"
251
249
  PRIMARY KEY (createdAt, ${tableName === storage.TABLE_EVALS ? "run_id" : "id"})
252
250
  ORDER BY (createdAt, ${tableName === storage.TABLE_EVALS ? "run_id" : "id"})
253
251
  ${this.ttl?.[tableName]?.row ? `TTL toDateTime(createdAt) + INTERVAL ${this.ttl[tableName].row.interval} ${this.ttl[tableName].row.unit}` : ""}
@@ -492,7 +490,7 @@ var ClickhouseStore = class extends storage.MastraStorage {
492
490
  async deleteThread({ threadId }) {
493
491
  try {
494
492
  await this.db.command({
495
- query: `DELETE FROM "${storage.TABLE_MESSAGES}" WHERE thread_id = '${threadId}';`,
493
+ query: `DELETE FROM "${storage.TABLE_MESSAGES}" WHERE thread_id = {var_thread_id:String};`,
496
494
  query_params: { var_thread_id: threadId },
497
495
  clickhouse_settings: {
498
496
  output_format_json_quote_64bit_integers: 0
package/dist/index.js CHANGED
@@ -235,7 +235,6 @@ var ClickhouseStore = class extends MastraStorage {
235
235
  ${["id String"].concat(columns)}
236
236
  )
237
237
  ENGINE = ${TABLE_ENGINES[tableName]}
238
- PARTITION BY "createdAt"
239
238
  PRIMARY KEY (createdAt, run_id, workflow_name)
240
239
  ORDER BY (createdAt, run_id, workflow_name)
241
240
  ${rowTtl ? `TTL toDateTime(${rowTtl.ttlKey ?? "createdAt"}) + INTERVAL ${rowTtl.interval} ${rowTtl.unit}` : ""}
@@ -245,7 +244,6 @@ var ClickhouseStore = class extends MastraStorage {
245
244
  ${columns}
246
245
  )
247
246
  ENGINE = ${TABLE_ENGINES[tableName]}
248
- PARTITION BY "createdAt"
249
247
  PRIMARY KEY (createdAt, ${tableName === TABLE_EVALS ? "run_id" : "id"})
250
248
  ORDER BY (createdAt, ${tableName === TABLE_EVALS ? "run_id" : "id"})
251
249
  ${this.ttl?.[tableName]?.row ? `TTL toDateTime(createdAt) + INTERVAL ${this.ttl[tableName].row.interval} ${this.ttl[tableName].row.unit}` : ""}
@@ -490,7 +488,7 @@ var ClickhouseStore = class extends MastraStorage {
490
488
  async deleteThread({ threadId }) {
491
489
  try {
492
490
  await this.db.command({
493
- query: `DELETE FROM "${TABLE_MESSAGES}" WHERE thread_id = '${threadId}';`,
491
+ query: `DELETE FROM "${TABLE_MESSAGES}" WHERE thread_id = {var_thread_id:String};`,
494
492
  query_params: { var_thread_id: threadId },
495
493
  clickhouse_settings: {
496
494
  output_format_json_quote_64bit_integers: 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/clickhouse",
3
- "version": "0.0.0-trigger-playground-ui-package-20250506151043",
3
+ "version": "0.0.0-vector-query-sources-20250516172905",
4
4
  "description": "Clickhouse provider for Mastra - includes db storage capabilities",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -21,7 +21,7 @@
21
21
  "license": "MIT",
22
22
  "dependencies": {
23
23
  "@clickhouse/client": "^1.11.0",
24
- "@mastra/core": "0.0.0-trigger-playground-ui-package-20250506151043"
24
+ "@mastra/core": "0.0.0-vector-query-sources-20250516172905"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@microsoft/api-extractor": "^7.52.5",
@@ -30,7 +30,7 @@
30
30
  "tsup": "^8.4.0",
31
31
  "typescript": "^5.8.2",
32
32
  "vitest": "^3.1.2",
33
- "@internal/lint": "0.0.0-trigger-playground-ui-package-20250506151043"
33
+ "@internal/lint": "0.0.0-vector-query-sources-20250516172905"
34
34
  },
35
35
  "scripts": {
36
36
  "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake=smallest --splitting",
@@ -337,7 +337,6 @@ export class ClickhouseStore extends MastraStorage {
337
337
  ${['id String'].concat(columns)}
338
338
  )
339
339
  ENGINE = ${TABLE_ENGINES[tableName]}
340
- PARTITION BY "createdAt"
341
340
  PRIMARY KEY (createdAt, run_id, workflow_name)
342
341
  ORDER BY (createdAt, run_id, workflow_name)
343
342
  ${rowTtl ? `TTL toDateTime(${rowTtl.ttlKey ?? 'createdAt'}) + INTERVAL ${rowTtl.interval} ${rowTtl.unit}` : ''}
@@ -348,7 +347,6 @@ export class ClickhouseStore extends MastraStorage {
348
347
  ${columns}
349
348
  )
350
349
  ENGINE = ${TABLE_ENGINES[tableName]}
351
- PARTITION BY "createdAt"
352
350
  PRIMARY KEY (createdAt, ${tableName === TABLE_EVALS ? 'run_id' : 'id'})
353
351
  ORDER BY (createdAt, ${tableName === TABLE_EVALS ? 'run_id' : 'id'})
354
352
  ${this.ttl?.[tableName]?.row ? `TTL toDateTime(createdAt) + INTERVAL ${this.ttl[tableName].row.interval} ${this.ttl[tableName].row.unit}` : ''}
@@ -627,7 +625,7 @@ export class ClickhouseStore extends MastraStorage {
627
625
  try {
628
626
  // First delete all messages associated with this thread
629
627
  await this.db.command({
630
- query: `DELETE FROM "${TABLE_MESSAGES}" WHERE thread_id = '${threadId}';`,
628
+ query: `DELETE FROM "${TABLE_MESSAGES}" WHERE thread_id = {var_thread_id:String};`,
631
629
  query_params: { var_thread_id: threadId },
632
630
  clickhouse_settings: {
633
631
  output_format_json_quote_64bit_integers: 0,