@mastra/cloudflare-d1 0.13.0-alpha.1 → 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 +29 -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,34 @@
|
|
|
1
1
|
# @mastra/cloudflare-d1
|
|
2
2
|
|
|
3
|
+
## 0.13.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
|
+
|
|
12
|
+
## 0.13.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- 376913a: Update peerdeps of @mastra/core
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- 6f5eb7a: Throw if an empty or whitespace-only threadId is passed when getting messages
|
|
21
|
+
- Updated dependencies [8fbf79e]
|
|
22
|
+
- Updated dependencies [fd83526]
|
|
23
|
+
- Updated dependencies [d0b90ab]
|
|
24
|
+
- Updated dependencies [6f5eb7a]
|
|
25
|
+
- Updated dependencies [a01cf14]
|
|
26
|
+
- Updated dependencies [a9e50ee]
|
|
27
|
+
- Updated dependencies [5397eb4]
|
|
28
|
+
- Updated dependencies [c9f4e4a]
|
|
29
|
+
- Updated dependencies [0acbc80]
|
|
30
|
+
- @mastra/core@0.16.0
|
|
31
|
+
|
|
3
32
|
## 0.13.0-alpha.1
|
|
4
33
|
|
|
5
34
|
### Minor Changes
|
package/dist/index.cjs
CHANGED
|
@@ -1956,6 +1956,7 @@ var WorkflowsStorageD1 = class extends storage.WorkflowsStorage {
|
|
|
1956
1956
|
async persistWorkflowSnapshot({
|
|
1957
1957
|
workflowName,
|
|
1958
1958
|
runId,
|
|
1959
|
+
resourceId,
|
|
1959
1960
|
snapshot
|
|
1960
1961
|
}) {
|
|
1961
1962
|
const fullTableName = this.operations.getTableName(storage.TABLE_WORKFLOW_SNAPSHOT);
|
|
@@ -1966,11 +1967,13 @@ var WorkflowsStorageD1 = class extends storage.WorkflowsStorage {
|
|
|
1966
1967
|
});
|
|
1967
1968
|
const persisting = currentSnapshot ? {
|
|
1968
1969
|
...currentSnapshot,
|
|
1970
|
+
resourceId,
|
|
1969
1971
|
snapshot: JSON.stringify(snapshot),
|
|
1970
1972
|
updatedAt: now
|
|
1971
1973
|
} : {
|
|
1972
1974
|
workflow_name: workflowName,
|
|
1973
1975
|
run_id: runId,
|
|
1976
|
+
resourceId,
|
|
1974
1977
|
snapshot,
|
|
1975
1978
|
createdAt: now,
|
|
1976
1979
|
updatedAt: now
|
|
@@ -2340,9 +2343,10 @@ var D1Store = class extends storage.MastraStorage {
|
|
|
2340
2343
|
async persistWorkflowSnapshot({
|
|
2341
2344
|
workflowName,
|
|
2342
2345
|
runId,
|
|
2346
|
+
resourceId,
|
|
2343
2347
|
snapshot
|
|
2344
2348
|
}) {
|
|
2345
|
-
return this.stores.workflows.persistWorkflowSnapshot({ workflowName, runId, snapshot });
|
|
2349
|
+
return this.stores.workflows.persistWorkflowSnapshot({ workflowName, runId, resourceId, snapshot });
|
|
2346
2350
|
}
|
|
2347
2351
|
async loadWorkflowSnapshot(params) {
|
|
2348
2352
|
return this.stores.workflows.loadWorkflowSnapshot(params);
|