@mastra/clickhouse 1.11.0 → 1.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.
- package/CHANGELOG.md +20 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/reference-storage-clickhouse.md +2 -0
- package/dist/docs/references/reference-storage-composite.md +2 -0
- package/dist/index.cjs +46 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +46 -18
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/scores/index.d.ts +9 -5
- package/dist/storage/domains/scores/index.d.ts.map +1 -1
- package/package.json +5 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ClickHouseClient } from '@clickhouse/client';
|
|
2
2
|
import type { ListScoresResponse, SaveScorePayload, ScoreRowData, ScoringSource } from '@mastra/core/evals';
|
|
3
3
|
import { ScoresStorage } from '@mastra/core/storage';
|
|
4
|
-
import type { StoragePagination } from '@mastra/core/storage';
|
|
4
|
+
import type { StoragePagination, ScoreTenancyFilters } from '@mastra/core/storage';
|
|
5
5
|
import type { ClickhouseDomainConfig } from '../../db/index.js';
|
|
6
6
|
export declare class ScoresStorageClickhouse extends ScoresStorage {
|
|
7
7
|
#private;
|
|
@@ -20,26 +20,30 @@ export declare class ScoresStorageClickhouse extends ScoresStorage {
|
|
|
20
20
|
saveScore(score: SaveScorePayload): Promise<{
|
|
21
21
|
score: ScoreRowData;
|
|
22
22
|
}>;
|
|
23
|
-
listScoresByRunId({ runId, pagination, }: {
|
|
23
|
+
listScoresByRunId({ runId, pagination, filters, }: {
|
|
24
24
|
runId: string;
|
|
25
25
|
pagination: StoragePagination;
|
|
26
|
+
filters?: ScoreTenancyFilters;
|
|
26
27
|
}): Promise<ListScoresResponse>;
|
|
27
|
-
listScoresByScorerId({ scorerId, entityId, entityType, source, pagination, }: {
|
|
28
|
+
listScoresByScorerId({ scorerId, entityId, entityType, source, pagination, filters, }: {
|
|
28
29
|
scorerId: string;
|
|
29
30
|
pagination: StoragePagination;
|
|
30
31
|
entityId?: string;
|
|
31
32
|
entityType?: string;
|
|
32
33
|
source?: ScoringSource;
|
|
34
|
+
filters?: ScoreTenancyFilters;
|
|
33
35
|
}): Promise<ListScoresResponse>;
|
|
34
|
-
listScoresByEntityId({ entityId, entityType, pagination, }: {
|
|
36
|
+
listScoresByEntityId({ entityId, entityType, pagination, filters, }: {
|
|
35
37
|
pagination: StoragePagination;
|
|
36
38
|
entityId: string;
|
|
37
39
|
entityType: string;
|
|
40
|
+
filters?: ScoreTenancyFilters;
|
|
38
41
|
}): Promise<ListScoresResponse>;
|
|
39
|
-
listScoresBySpan({ traceId, spanId, pagination, }: {
|
|
42
|
+
listScoresBySpan({ traceId, spanId, pagination, filters, }: {
|
|
40
43
|
traceId: string;
|
|
41
44
|
spanId: string;
|
|
42
45
|
pagination: StoragePagination;
|
|
46
|
+
filters?: ScoreTenancyFilters;
|
|
43
47
|
}): Promise<ListScoresResponse>;
|
|
44
48
|
}
|
|
45
49
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/scores/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAG3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC5G,OAAO,EAEL,aAAa,EAOd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/scores/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAG3D,OAAO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C,EAAE,mBAAmB,CAAC;KAC/B,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAiGzB,oBAAoB,CAAC,EACzB,QAAQ,EACR,UAAU,EACV,UAAU,EACV,OAAO,GACR,EAAE;QACD,UAAU,EAAE,iBAAiB,CAAC;QAC9B,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,mBAAmB,CAAC;KAC/B,GAAG,OAAO,CAAC,kBAAkB,CAAC;IA6EzB,gBAAgB,CAAC,EACrB,OAAO,EACP,MAAM,EACN,UAAU,EACV,OAAO,GACR,EAAE;QACD,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,MAAM,CAAC;QACf,UAAU,EAAE,iBAAiB,CAAC;QAC9B,OAAO,CAAC,EAAE,mBAAmB,CAAC;KAC/B,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAgFhC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/clickhouse",
|
|
3
|
-
"version": "1.11.0",
|
|
3
|
+
"version": "1.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",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"typescript": "^6.0.3",
|
|
33
33
|
"vitest": "4.1.8",
|
|
34
34
|
"zod": "^4.4.3",
|
|
35
|
-
"@internal/lint": "0.0.
|
|
36
|
-
"@internal/
|
|
37
|
-
"@
|
|
38
|
-
"@
|
|
35
|
+
"@internal/lint": "0.0.110",
|
|
36
|
+
"@internal/storage-test-utils": "0.0.106",
|
|
37
|
+
"@internal/types-builder": "0.0.85",
|
|
38
|
+
"@mastra/core": "1.49.0-alpha.5"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@mastra/core": ">=1.34.0-0 <2.0.0-0",
|