@mastra/clickhouse 0.15.0 → 0.15.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 +9 -0
- package/dist/index.cjs +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/workflows/index.d.ts +2 -1
- package/dist/storage/domains/workflows/index.d.ts.map +1 -1
- package/dist/storage/index.d.ts +2 -1
- package/dist/storage/index.d.ts.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @mastra/clickhouse
|
|
2
2
|
|
|
3
|
+
## 0.15.1-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Add resource id to workflow run snapshots ([#7740](https://github.com/mastra-ai/mastra/pull/7740))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`547c621`](https://github.com/mastra-ai/mastra/commit/547c62104af3f7a551b3754e9cbdf0a3fbba15e4)]:
|
|
10
|
+
- @mastra/core@0.16.4-alpha.1
|
|
11
|
+
|
|
3
12
|
## 0.15.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
package/dist/index.cjs
CHANGED
|
@@ -2304,6 +2304,7 @@ var WorkflowsStorageClickhouse = class extends storage.WorkflowsStorage {
|
|
|
2304
2304
|
async persistWorkflowSnapshot({
|
|
2305
2305
|
workflowName,
|
|
2306
2306
|
runId,
|
|
2307
|
+
resourceId,
|
|
2307
2308
|
snapshot
|
|
2308
2309
|
}) {
|
|
2309
2310
|
try {
|
|
@@ -2314,11 +2315,13 @@ var WorkflowsStorageClickhouse = class extends storage.WorkflowsStorage {
|
|
|
2314
2315
|
const now = /* @__PURE__ */ new Date();
|
|
2315
2316
|
const persisting = currentSnapshot ? {
|
|
2316
2317
|
...currentSnapshot,
|
|
2318
|
+
resourceId,
|
|
2317
2319
|
snapshot: JSON.stringify(snapshot),
|
|
2318
2320
|
updatedAt: now.toISOString()
|
|
2319
2321
|
} : {
|
|
2320
2322
|
workflow_name: workflowName,
|
|
2321
2323
|
run_id: runId,
|
|
2324
|
+
resourceId,
|
|
2322
2325
|
snapshot: JSON.stringify(snapshot),
|
|
2323
2326
|
createdAt: now.toISOString(),
|
|
2324
2327
|
updatedAt: now.toISOString()
|
|
@@ -2655,9 +2658,10 @@ var ClickhouseStore = class extends storage.MastraStorage {
|
|
|
2655
2658
|
async persistWorkflowSnapshot({
|
|
2656
2659
|
workflowName,
|
|
2657
2660
|
runId,
|
|
2661
|
+
resourceId,
|
|
2658
2662
|
snapshot
|
|
2659
2663
|
}) {
|
|
2660
|
-
return this.stores.workflows.persistWorkflowSnapshot({ workflowName, runId, snapshot });
|
|
2664
|
+
return this.stores.workflows.persistWorkflowSnapshot({ workflowName, runId, resourceId, snapshot });
|
|
2661
2665
|
}
|
|
2662
2666
|
async loadWorkflowSnapshot({
|
|
2663
2667
|
workflowName,
|