@mastra/clickhouse 0.15.0 → 0.15.1-alpha.1
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 +18 -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/dist/index.js
CHANGED
|
@@ -2302,6 +2302,7 @@ var WorkflowsStorageClickhouse = class extends WorkflowsStorage {
|
|
|
2302
2302
|
async persistWorkflowSnapshot({
|
|
2303
2303
|
workflowName,
|
|
2304
2304
|
runId,
|
|
2305
|
+
resourceId,
|
|
2305
2306
|
snapshot
|
|
2306
2307
|
}) {
|
|
2307
2308
|
try {
|
|
@@ -2312,11 +2313,13 @@ var WorkflowsStorageClickhouse = class extends WorkflowsStorage {
|
|
|
2312
2313
|
const now = /* @__PURE__ */ new Date();
|
|
2313
2314
|
const persisting = currentSnapshot ? {
|
|
2314
2315
|
...currentSnapshot,
|
|
2316
|
+
resourceId,
|
|
2315
2317
|
snapshot: JSON.stringify(snapshot),
|
|
2316
2318
|
updatedAt: now.toISOString()
|
|
2317
2319
|
} : {
|
|
2318
2320
|
workflow_name: workflowName,
|
|
2319
2321
|
run_id: runId,
|
|
2322
|
+
resourceId,
|
|
2320
2323
|
snapshot: JSON.stringify(snapshot),
|
|
2321
2324
|
createdAt: now.toISOString(),
|
|
2322
2325
|
updatedAt: now.toISOString()
|
|
@@ -2653,9 +2656,10 @@ var ClickhouseStore = class extends MastraStorage {
|
|
|
2653
2656
|
async persistWorkflowSnapshot({
|
|
2654
2657
|
workflowName,
|
|
2655
2658
|
runId,
|
|
2659
|
+
resourceId,
|
|
2656
2660
|
snapshot
|
|
2657
2661
|
}) {
|
|
2658
|
-
return this.stores.workflows.persistWorkflowSnapshot({ workflowName, runId, snapshot });
|
|
2662
|
+
return this.stores.workflows.persistWorkflowSnapshot({ workflowName, runId, resourceId, snapshot });
|
|
2659
2663
|
}
|
|
2660
2664
|
async loadWorkflowSnapshot({
|
|
2661
2665
|
workflowName,
|