@mastra/clickhouse 0.13.2 → 0.13.3-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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +9 -0
- package/dist/index.cjs +37 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +38 -3
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/utils.d.ts.map +1 -1
- package/dist/storage/domains/workflows/index.d.ts +19 -1
- package/dist/storage/domains/workflows/index.d.ts.map +1 -1
- package/dist/storage/index.d.ts +19 -1
- package/dist/storage/index.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/storage/domains/utils.ts +4 -0
- package/src/storage/domains/workflows/index.ts +38 -1
- package/src/storage/index.ts +35 -1
package/.turbo/turbo-build.log
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @mastra/clickhouse
|
|
2
2
|
|
|
3
|
+
## 0.13.3-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#7020](https://github.com/mastra-ai/mastra/pull/7020) [`2e58325`](https://github.com/mastra-ai/mastra/commit/2e58325beb170f5b92f856e27d915cd26917e5e6) Thanks [@YujohnNattrass](https://github.com/YujohnNattrass)! - Add column to ai spans table to tell if it's an event
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`2e58325`](https://github.com/mastra-ai/mastra/commit/2e58325beb170f5b92f856e27d915cd26917e5e6)]:
|
|
10
|
+
- @mastra/core@0.14.2-alpha.2
|
|
11
|
+
|
|
3
12
|
## 0.13.2
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -13,7 +13,9 @@ var TABLE_ENGINES = {
|
|
|
13
13
|
[storage.TABLE_THREADS]: `ReplacingMergeTree()`,
|
|
14
14
|
[storage.TABLE_EVALS]: `MergeTree()`,
|
|
15
15
|
[storage.TABLE_SCORERS]: `MergeTree()`,
|
|
16
|
-
[storage.TABLE_RESOURCES]: `ReplacingMergeTree()
|
|
16
|
+
[storage.TABLE_RESOURCES]: `ReplacingMergeTree()`,
|
|
17
|
+
// TODO: verify this is the correct engine for ai spans when implementing clickhouse storage
|
|
18
|
+
[storage.TABLE_AI_SPANS]: `ReplacingMergeTree()`
|
|
17
19
|
};
|
|
18
20
|
var COLUMN_TYPES = {
|
|
19
21
|
text: "String",
|
|
@@ -22,7 +24,8 @@ var COLUMN_TYPES = {
|
|
|
22
24
|
jsonb: "String",
|
|
23
25
|
integer: "Int64",
|
|
24
26
|
float: "Float64",
|
|
25
|
-
bigint: "Int64"
|
|
27
|
+
bigint: "Int64",
|
|
28
|
+
boolean: "Bool"
|
|
26
29
|
};
|
|
27
30
|
function transformRow(row) {
|
|
28
31
|
if (!row) {
|
|
@@ -2273,6 +2276,22 @@ var WorkflowsStorageClickhouse = class extends storage.WorkflowsStorage {
|
|
|
2273
2276
|
this.operations = operations;
|
|
2274
2277
|
this.client = client;
|
|
2275
2278
|
}
|
|
2279
|
+
updateWorkflowResults({
|
|
2280
|
+
// workflowName,
|
|
2281
|
+
// runId,
|
|
2282
|
+
// stepId,
|
|
2283
|
+
// result,
|
|
2284
|
+
// runtimeContext,
|
|
2285
|
+
}) {
|
|
2286
|
+
throw new Error("Method not implemented.");
|
|
2287
|
+
}
|
|
2288
|
+
updateWorkflowState({
|
|
2289
|
+
// workflowName,
|
|
2290
|
+
// runId,
|
|
2291
|
+
// opts,
|
|
2292
|
+
}) {
|
|
2293
|
+
throw new Error("Method not implemented.");
|
|
2294
|
+
}
|
|
2276
2295
|
async persistWorkflowSnapshot({
|
|
2277
2296
|
workflowName,
|
|
2278
2297
|
runId,
|
|
@@ -2608,6 +2627,22 @@ var ClickhouseStore = class extends storage.MastraStorage {
|
|
|
2608
2627
|
async load({ tableName, keys }) {
|
|
2609
2628
|
return this.stores.operations.load({ tableName, keys });
|
|
2610
2629
|
}
|
|
2630
|
+
async updateWorkflowResults({
|
|
2631
|
+
workflowName,
|
|
2632
|
+
runId,
|
|
2633
|
+
stepId,
|
|
2634
|
+
result,
|
|
2635
|
+
runtimeContext
|
|
2636
|
+
}) {
|
|
2637
|
+
return this.stores.workflows.updateWorkflowResults({ workflowName, runId, stepId, result, runtimeContext });
|
|
2638
|
+
}
|
|
2639
|
+
async updateWorkflowState({
|
|
2640
|
+
workflowName,
|
|
2641
|
+
runId,
|
|
2642
|
+
opts
|
|
2643
|
+
}) {
|
|
2644
|
+
return this.stores.workflows.updateWorkflowState({ workflowName, runId, opts });
|
|
2645
|
+
}
|
|
2611
2646
|
async persistWorkflowSnapshot({
|
|
2612
2647
|
workflowName,
|
|
2613
2648
|
runId,
|