@mastra/cloudflare 0.13.3 → 0.13.4
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 +20 -0
- package/dist/index.cjs +7 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -19
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/workflows/index.d.ts +2 -9
- package/dist/storage/domains/workflows/index.d.ts.map +1 -1
- package/dist/storage/index.d.ts +2 -9
- package/dist/storage/index.d.ts.map +1 -1
- package/dist/storage/test-utils.d.ts.map +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @mastra/cloudflare
|
|
2
2
|
|
|
3
|
+
## 0.13.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Add restart method to workflow run that allows restarting an active workflow run ([#10703](https://github.com/mastra-ai/mastra/pull/10703))
|
|
8
|
+
Add status filter to `getWorkflowRuns`
|
|
9
|
+
Add automatic restart to restart active workflow runs when server starts
|
|
10
|
+
- Updated dependencies [[`5cc85aa`](https://github.com/mastra-ai/mastra/commit/5cc85aa4329773cac8314f3aa0146227b6b158e4), [`c53f8e6`](https://github.com/mastra-ai/mastra/commit/c53f8e68df42464935f9a63eb0fc765a65aacb83), [`386ab43`](https://github.com/mastra-ai/mastra/commit/386ab4350cf2a814fb4ac0a5fc6983ca93158ffe), [`2b62302`](https://github.com/mastra-ai/mastra/commit/2b623027a9d65c1dbc963bf651e9e6a9d09da1fa), [`7d85da4`](https://github.com/mastra-ai/mastra/commit/7d85da42a5fab56009a959a9c20328558d14f4b5), [`3d7c5bd`](https://github.com/mastra-ai/mastra/commit/3d7c5bdbee1b2693cd45bf207b960dd9b7277680), [`31b381e`](https://github.com/mastra-ai/mastra/commit/31b381efb48e031c0ecc46bc6e410ae6e67b88e5), [`54cc99c`](https://github.com/mastra-ai/mastra/commit/54cc99cb99483b9e08ec41fa1502f43b71b4c351), [`e77a5f9`](https://github.com/mastra-ai/mastra/commit/e77a5f9718dc418e29e3c8a389299ed6dc0a6401), [`b685c9c`](https://github.com/mastra-ai/mastra/commit/b685c9c0b89f49e0d4542c4ac72569682db69794), [`b069af5`](https://github.com/mastra-ai/mastra/commit/b069af514c4dcfc4fdcb164303569bfff1c26e3d), [`7dc8304`](https://github.com/mastra-ai/mastra/commit/7dc830420296db516b86dcec663e54d0309b8fb8), [`6942109`](https://github.com/mastra-ai/mastra/commit/694210903c70e3c26b5ce8ca4f4637ca2d9eb369), [`62d13f4`](https://github.com/mastra-ai/mastra/commit/62d13f4d1db1c16742831f210fe4c2caf8a26d57), [`358ab98`](https://github.com/mastra-ai/mastra/commit/358ab98024c388e383aca15616e8988bf4a5b66e)]:
|
|
11
|
+
- @mastra/core@0.24.7
|
|
12
|
+
|
|
13
|
+
## 0.13.4-alpha.0
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Add restart method to workflow run that allows restarting an active workflow run ([#10703](https://github.com/mastra-ai/mastra/pull/10703))
|
|
18
|
+
Add status filter to `getWorkflowRuns`
|
|
19
|
+
Add automatic restart to restart active workflow runs when server starts
|
|
20
|
+
- Updated dependencies [[`5cc85aa`](https://github.com/mastra-ai/mastra/commit/5cc85aa4329773cac8314f3aa0146227b6b158e4), [`c53f8e6`](https://github.com/mastra-ai/mastra/commit/c53f8e68df42464935f9a63eb0fc765a65aacb83), [`386ab43`](https://github.com/mastra-ai/mastra/commit/386ab4350cf2a814fb4ac0a5fc6983ca93158ffe), [`2b62302`](https://github.com/mastra-ai/mastra/commit/2b623027a9d65c1dbc963bf651e9e6a9d09da1fa), [`7d85da4`](https://github.com/mastra-ai/mastra/commit/7d85da42a5fab56009a959a9c20328558d14f4b5), [`3d7c5bd`](https://github.com/mastra-ai/mastra/commit/3d7c5bdbee1b2693cd45bf207b960dd9b7277680), [`31b381e`](https://github.com/mastra-ai/mastra/commit/31b381efb48e031c0ecc46bc6e410ae6e67b88e5), [`e77a5f9`](https://github.com/mastra-ai/mastra/commit/e77a5f9718dc418e29e3c8a389299ed6dc0a6401), [`b069af5`](https://github.com/mastra-ai/mastra/commit/b069af514c4dcfc4fdcb164303569bfff1c26e3d), [`7dc8304`](https://github.com/mastra-ai/mastra/commit/7dc830420296db516b86dcec663e54d0309b8fb8), [`6942109`](https://github.com/mastra-ai/mastra/commit/694210903c70e3c26b5ce8ca4f4637ca2d9eb369), [`62d13f4`](https://github.com/mastra-ai/mastra/commit/62d13f4d1db1c16742831f210fe4c2caf8a26d57), [`358ab98`](https://github.com/mastra-ai/mastra/commit/358ab98024c388e383aca15616e8988bf4a5b66e)]:
|
|
21
|
+
- @mastra/core@0.24.7-alpha.1
|
|
22
|
+
|
|
3
23
|
## 0.13.3
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -2035,7 +2035,7 @@ var WorkflowsStorageCloudflare = class extends storage.WorkflowsStorage {
|
|
|
2035
2035
|
workflow_name: workflowName,
|
|
2036
2036
|
run_id: runId,
|
|
2037
2037
|
resourceId,
|
|
2038
|
-
snapshot:
|
|
2038
|
+
snapshot: JSON.stringify(snapshot),
|
|
2039
2039
|
createdAt: /* @__PURE__ */ new Date(),
|
|
2040
2040
|
updatedAt: /* @__PURE__ */ new Date()
|
|
2041
2041
|
}
|
|
@@ -2120,7 +2120,8 @@ var WorkflowsStorageCloudflare = class extends storage.WorkflowsStorage {
|
|
|
2120
2120
|
offset = 0,
|
|
2121
2121
|
resourceId,
|
|
2122
2122
|
fromDate,
|
|
2123
|
-
toDate
|
|
2123
|
+
toDate,
|
|
2124
|
+
status
|
|
2124
2125
|
} = {}) {
|
|
2125
2126
|
try {
|
|
2126
2127
|
const prefix = this.buildWorkflowSnapshotPrefix({ workflowName });
|
|
@@ -2138,10 +2139,11 @@ var WorkflowsStorageCloudflare = class extends storage.WorkflowsStorage {
|
|
|
2138
2139
|
if (!data) continue;
|
|
2139
2140
|
try {
|
|
2140
2141
|
if (resourceId && !keyResourceId) continue;
|
|
2142
|
+
const snapshotData = typeof data.snapshot === "string" ? JSON.parse(data.snapshot) : data.snapshot;
|
|
2143
|
+
if (status && snapshotData.status !== status) continue;
|
|
2141
2144
|
const createdAt = storage.ensureDate(data.createdAt);
|
|
2142
2145
|
if (fromDate && createdAt && createdAt < fromDate) continue;
|
|
2143
2146
|
if (toDate && createdAt && createdAt > toDate) continue;
|
|
2144
|
-
const snapshotData = typeof data.snapshot === "string" ? JSON.parse(data.snapshot) : data.snapshot;
|
|
2145
2147
|
const resourceIdToUse = keyResourceId || data.resourceId;
|
|
2146
2148
|
const run = this.parseWorkflowRun({
|
|
2147
2149
|
...data,
|
|
@@ -2438,22 +2440,8 @@ var CloudflareStore = class extends storage.MastraStorage {
|
|
|
2438
2440
|
async getEvals(options) {
|
|
2439
2441
|
return this.stores.legacyEvals.getEvals(options);
|
|
2440
2442
|
}
|
|
2441
|
-
async getWorkflowRuns({
|
|
2442
|
-
|
|
2443
|
-
limit = 20,
|
|
2444
|
-
offset = 0,
|
|
2445
|
-
resourceId,
|
|
2446
|
-
fromDate,
|
|
2447
|
-
toDate
|
|
2448
|
-
} = {}) {
|
|
2449
|
-
return this.stores.workflows.getWorkflowRuns({
|
|
2450
|
-
workflowName,
|
|
2451
|
-
limit,
|
|
2452
|
-
offset,
|
|
2453
|
-
resourceId,
|
|
2454
|
-
fromDate,
|
|
2455
|
-
toDate
|
|
2456
|
-
});
|
|
2443
|
+
async getWorkflowRuns(args = {}) {
|
|
2444
|
+
return this.stores.workflows.getWorkflowRuns(args);
|
|
2457
2445
|
}
|
|
2458
2446
|
async getWorkflowRunById({
|
|
2459
2447
|
runId,
|