@mastra/cloudflare 1.2.1 → 1.2.2
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/LICENSE.md +15 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/reference-storage-cloudflare.md +8 -8
- package/dist/index.cjs +11 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -14
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/workflows/index.d.ts +3 -2
- package/dist/storage/domains/workflows/index.d.ts.map +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -1894,6 +1894,9 @@ var WorkflowsStorageCloudflare = class extends WorkflowsStorage {
|
|
|
1894
1894
|
super();
|
|
1895
1895
|
this.#db = new CloudflareKVDB(resolveCloudflareConfig(config));
|
|
1896
1896
|
}
|
|
1897
|
+
supportsConcurrentUpdates() {
|
|
1898
|
+
return false;
|
|
1899
|
+
}
|
|
1897
1900
|
async init() {
|
|
1898
1901
|
}
|
|
1899
1902
|
async dangerouslyClearAll() {
|
|
@@ -1905,21 +1908,15 @@ var WorkflowsStorageCloudflare = class extends WorkflowsStorage {
|
|
|
1905
1908
|
throw new Error("Invalid workflow snapshot parameters");
|
|
1906
1909
|
}
|
|
1907
1910
|
}
|
|
1908
|
-
updateWorkflowResults({
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
// result,
|
|
1913
|
-
// requestContext,
|
|
1914
|
-
}) {
|
|
1915
|
-
throw new Error("Method not implemented.");
|
|
1911
|
+
async updateWorkflowResults(_args) {
|
|
1912
|
+
throw new Error(
|
|
1913
|
+
"updateWorkflowResults is not implemented for Cloudflare KV storage. Cloudflare KV is eventually-consistent and does not support atomic read-modify-write operations needed for concurrent workflow updates."
|
|
1914
|
+
);
|
|
1916
1915
|
}
|
|
1917
|
-
updateWorkflowState({
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
}) {
|
|
1922
|
-
throw new Error("Method not implemented.");
|
|
1916
|
+
async updateWorkflowState(_args) {
|
|
1917
|
+
throw new Error(
|
|
1918
|
+
"updateWorkflowState is not implemented for Cloudflare KV storage. Cloudflare KV is eventually-consistent and does not support atomic read-modify-write operations needed for concurrent workflow updates."
|
|
1919
|
+
);
|
|
1923
1920
|
}
|
|
1924
1921
|
async persistWorkflowSnapshot(params) {
|
|
1925
1922
|
try {
|