@mastra/cloudflare-d1 0.13.0 → 0.13.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/dist/index.js
CHANGED
|
@@ -1950,6 +1950,7 @@ var WorkflowsStorageD1 = class extends WorkflowsStorage {
|
|
|
1950
1950
|
async persistWorkflowSnapshot({
|
|
1951
1951
|
workflowName,
|
|
1952
1952
|
runId,
|
|
1953
|
+
resourceId,
|
|
1953
1954
|
snapshot
|
|
1954
1955
|
}) {
|
|
1955
1956
|
const fullTableName = this.operations.getTableName(TABLE_WORKFLOW_SNAPSHOT);
|
|
@@ -1960,11 +1961,13 @@ var WorkflowsStorageD1 = class extends WorkflowsStorage {
|
|
|
1960
1961
|
});
|
|
1961
1962
|
const persisting = currentSnapshot ? {
|
|
1962
1963
|
...currentSnapshot,
|
|
1964
|
+
resourceId,
|
|
1963
1965
|
snapshot: JSON.stringify(snapshot),
|
|
1964
1966
|
updatedAt: now
|
|
1965
1967
|
} : {
|
|
1966
1968
|
workflow_name: workflowName,
|
|
1967
1969
|
run_id: runId,
|
|
1970
|
+
resourceId,
|
|
1968
1971
|
snapshot,
|
|
1969
1972
|
createdAt: now,
|
|
1970
1973
|
updatedAt: now
|
|
@@ -2334,9 +2337,10 @@ var D1Store = class extends MastraStorage {
|
|
|
2334
2337
|
async persistWorkflowSnapshot({
|
|
2335
2338
|
workflowName,
|
|
2336
2339
|
runId,
|
|
2340
|
+
resourceId,
|
|
2337
2341
|
snapshot
|
|
2338
2342
|
}) {
|
|
2339
|
-
return this.stores.workflows.persistWorkflowSnapshot({ workflowName, runId, snapshot });
|
|
2343
|
+
return this.stores.workflows.persistWorkflowSnapshot({ workflowName, runId, resourceId, snapshot });
|
|
2340
2344
|
}
|
|
2341
2345
|
async loadWorkflowSnapshot(params) {
|
|
2342
2346
|
return this.stores.workflows.loadWorkflowSnapshot(params);
|