@mastra/clickhouse 0.11.0 → 0.11.1-alpha.0

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.
@@ -1,23 +1,23 @@
1
1
 
2
- > @mastra/clickhouse@0.11.0-alpha.1 build /home/runner/work/mastra/mastra/stores/clickhouse
2
+ > @mastra/clickhouse@0.11.1-alpha.0 build /home/runner/work/mastra/mastra/stores/clickhouse
3
3
  > tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake=smallest --splitting
4
4
 
5
5
  CLI Building entry: src/index.ts
6
6
  CLI Using tsconfig: tsconfig.json
7
7
  CLI tsup v8.5.0
8
8
  TSC Build start
9
- TSC ⚡️ Build success in 8474ms
9
+ TSC ⚡️ Build success in 8842ms
10
10
  DTS Build start
11
11
  CLI Target: es2022
12
12
  Analysis will use the bundled TypeScript version 5.8.3
13
13
  Writing package typings: /home/runner/work/mastra/mastra/stores/clickhouse/dist/_tsup-dts-rollup.d.ts
14
14
  Analysis will use the bundled TypeScript version 5.8.3
15
15
  Writing package typings: /home/runner/work/mastra/mastra/stores/clickhouse/dist/_tsup-dts-rollup.d.cts
16
- DTS ⚡️ Build success in 10940ms
16
+ DTS ⚡️ Build success in 11112ms
17
17
  CLI Cleaning output folder
18
18
  ESM Build start
19
19
  CJS Build start
20
- CJS dist/index.cjs 31.44 KB
21
- CJS ⚡️ Build success in 974ms
22
- ESM dist/index.js 31.18 KB
23
- ESM ⚡️ Build success in 977ms
20
+ ESM dist/index.js 31.34 KB
21
+ ESM ⚡️ Build success in 1175ms
22
+ CJS dist/index.cjs 31.60 KB
23
+ CJS ⚡️ Build success in 1176ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @mastra/clickhouse
2
2
 
3
+ ## 0.11.1-alpha.0
4
+
5
+ ### Patch Changes
6
+
7
+ - d8f2d19: Add updateMessages API to storage classes (only support for PG and LibSQL for now) and to memory class. Additionally allow for metadata to be saved in the content field of a message.
8
+ - Updated dependencies [d8f2d19]
9
+ - Updated dependencies [9d52b17]
10
+ - Updated dependencies [8ba1b51]
11
+ - @mastra/core@0.10.7-alpha.0
12
+
3
13
  ## 0.11.0
4
14
 
5
15
  ### Minor Changes
@@ -1,5 +1,6 @@
1
1
  import type { ClickHouseClient } from '@clickhouse/client';
2
2
  import type { EvalRow } from '@mastra/core/storage';
3
+ import type { MastraMessageContentV2 } from '@mastra/core/agent';
3
4
  import type { MastraMessageV1 } from '@mastra/core/memory';
4
5
  import type { MastraMessageV2 } from '@mastra/core/memory';
5
6
  import { MastraStorage } from '@mastra/core/storage';
@@ -160,6 +161,15 @@ declare class ClickhouseStore extends MastraStorage {
160
161
  messages: MastraMessageV1[] | MastraMessageV2[];
161
162
  }>;
162
163
  close(): Promise<void>;
164
+ updateMessages(_args: {
165
+ messages: Partial<Omit<MastraMessageV2, 'createdAt'>> & {
166
+ id: string;
167
+ content?: {
168
+ metadata?: MastraMessageContentV2['metadata'];
169
+ content?: MastraMessageContentV2['content'];
170
+ };
171
+ }[];
172
+ }): Promise<MastraMessageV2[]>;
163
173
  }
164
174
  export { ClickhouseStore }
165
175
  export { ClickhouseStore as ClickhouseStore_alias_1 }
@@ -1,5 +1,6 @@
1
1
  import type { ClickHouseClient } from '@clickhouse/client';
2
2
  import type { EvalRow } from '@mastra/core/storage';
3
+ import type { MastraMessageContentV2 } from '@mastra/core/agent';
3
4
  import type { MastraMessageV1 } from '@mastra/core/memory';
4
5
  import type { MastraMessageV2 } from '@mastra/core/memory';
5
6
  import { MastraStorage } from '@mastra/core/storage';
@@ -160,6 +161,15 @@ declare class ClickhouseStore extends MastraStorage {
160
161
  messages: MastraMessageV1[] | MastraMessageV2[];
161
162
  }>;
162
163
  close(): Promise<void>;
164
+ updateMessages(_args: {
165
+ messages: Partial<Omit<MastraMessageV2, 'createdAt'>> & {
166
+ id: string;
167
+ content?: {
168
+ metadata?: MastraMessageContentV2['metadata'];
169
+ content?: MastraMessageContentV2['content'];
170
+ };
171
+ }[];
172
+ }): Promise<MastraMessageV2[]>;
163
173
  }
164
174
  export { ClickhouseStore }
165
175
  export { ClickhouseStore as ClickhouseStore_alias_1 }
package/dist/index.cjs CHANGED
@@ -950,6 +950,10 @@ var ClickhouseStore = class extends storage.MastraStorage {
950
950
  async close() {
951
951
  await this.db.close();
952
952
  }
953
+ async updateMessages(_args) {
954
+ this.logger.error("updateMessages is not yet implemented in ClickhouseStore");
955
+ throw new Error("Method not implemented");
956
+ }
953
957
  };
954
958
 
955
959
  exports.COLUMN_TYPES = COLUMN_TYPES;
package/dist/index.js CHANGED
@@ -948,6 +948,10 @@ var ClickhouseStore = class extends MastraStorage {
948
948
  async close() {
949
949
  await this.db.close();
950
950
  }
951
+ async updateMessages(_args) {
952
+ this.logger.error("updateMessages is not yet implemented in ClickhouseStore");
953
+ throw new Error("Method not implemented");
954
+ }
951
955
  };
952
956
 
953
957
  export { COLUMN_TYPES, ClickhouseStore, TABLE_ENGINES };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/clickhouse",
3
- "version": "0.11.0",
3
+ "version": "0.11.1-alpha.0",
4
4
  "description": "Clickhouse provider for Mastra - includes db storage capabilities",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -31,7 +31,7 @@
31
31
  "vitest": "^3.2.3",
32
32
  "@internal/lint": "0.0.13",
33
33
  "@internal/storage-test-utils": "0.0.9",
34
- "@mastra/core": "0.10.6"
34
+ "@mastra/core": "0.10.7-alpha.0"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "@mastra/core": ">=0.10.4-0 <0.11.0"
@@ -1,6 +1,7 @@
1
1
  import type { ClickHouseClient } from '@clickhouse/client';
2
2
  import { createClient } from '@clickhouse/client';
3
3
  import { MessageList } from '@mastra/core/agent';
4
+ import type { MastraMessageContentV2 } from '@mastra/core/agent';
4
5
  import type { MetricResult, TestInfo } from '@mastra/core/eval';
5
6
  import type { MastraMessageV1, MastraMessageV2, StorageThreadType } from '@mastra/core/memory';
6
7
  import {
@@ -1186,4 +1187,15 @@ export class ClickhouseStore extends MastraStorage {
1186
1187
  async close(): Promise<void> {
1187
1188
  await this.db.close();
1188
1189
  }
1190
+
1191
+ async updateMessages(_args: {
1192
+ messages: Partial<Omit<MastraMessageV2, 'createdAt'>> &
1193
+ {
1194
+ id: string;
1195
+ content?: { metadata?: MastraMessageContentV2['metadata']; content?: MastraMessageContentV2['content'] };
1196
+ }[];
1197
+ }): Promise<MastraMessageV2[]> {
1198
+ this.logger.error('updateMessages is not yet implemented in ClickhouseStore');
1199
+ throw new Error('Method not implemented');
1200
+ }
1189
1201
  }