@mastra/mssql 1.0.0-beta.1 → 1.0.0-beta.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 +10 -0
- package/dist/index.cjs +10 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -11
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/workflows/index.d.ts +1 -1
- package/dist/storage/domains/workflows/index.d.ts.map +1 -1
- package/dist/storage/index.d.ts +1 -1
- package/dist/storage/index.d.ts.map +1 -1
- package/package.json +8 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @mastra/mssql
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Add restart method to workflow run that allows restarting an active workflow run ([#9750](https://github.com/mastra-ai/mastra/pull/9750))
|
|
8
|
+
Add status filter to `listWorkflowRuns`
|
|
9
|
+
Add automatic restart to restart active workflow runs when server starts
|
|
10
|
+
- Updated dependencies [[`2319326`](https://github.com/mastra-ai/mastra/commit/2319326f8c64e503a09bbcf14be2dd65405445e0), [`d629361`](https://github.com/mastra-ai/mastra/commit/d629361a60f6565b5bfb11976fdaf7308af858e2), [`08c31c1`](https://github.com/mastra-ai/mastra/commit/08c31c188ebccd598acaf55e888b6397d01f7eae), [`fd3d338`](https://github.com/mastra-ai/mastra/commit/fd3d338a2c362174ed5b383f1f011ad9fb0302aa), [`c30400a`](https://github.com/mastra-ai/mastra/commit/c30400a49b994b1b97256fe785eb6c906fc2b232), [`69e0a87`](https://github.com/mastra-ai/mastra/commit/69e0a878896a2da9494945d86e056a5f8f05b851), [`01f8878`](https://github.com/mastra-ai/mastra/commit/01f88783de25e4de048c1c8aace43e26373c6ea5), [`4c77209`](https://github.com/mastra-ai/mastra/commit/4c77209e6c11678808b365d545845918c40045c8), [`d827d08`](https://github.com/mastra-ai/mastra/commit/d827d0808ffe1f3553a84e975806cc989b9735dd), [`23c10a1`](https://github.com/mastra-ai/mastra/commit/23c10a1efdd9a693c405511ab2dc8a1236603162), [`676ccc7`](https://github.com/mastra-ai/mastra/commit/676ccc7fe92468d2d45d39c31a87825c89fd1ea0), [`c10398d`](https://github.com/mastra-ai/mastra/commit/c10398d5b88f1d4af556f4267ff06f1d11e89179), [`00c2387`](https://github.com/mastra-ai/mastra/commit/00c2387f5f04a365316f851e58666ac43f8c4edf), [`ad6250d`](https://github.com/mastra-ai/mastra/commit/ad6250dbdaad927e29f74a27b83f6c468b50a705), [`3a73998`](https://github.com/mastra-ai/mastra/commit/3a73998fa4ebeb7f3dc9301afe78095fc63e7999), [`e16d553`](https://github.com/mastra-ai/mastra/commit/e16d55338403c7553531cc568125c63d53653dff), [`4d59f58`](https://github.com/mastra-ai/mastra/commit/4d59f58de2d90d6e2810a19d4518e38ddddb9038), [`e1bb9c9`](https://github.com/mastra-ai/mastra/commit/e1bb9c94b4eb68b019ae275981be3feb769b5365), [`351a11f`](https://github.com/mastra-ai/mastra/commit/351a11fcaf2ed1008977fa9b9a489fc422e51cd4)]:
|
|
11
|
+
- @mastra/core@1.0.0-beta.3
|
|
12
|
+
|
|
3
13
|
## 1.0.0-beta.1
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -2677,13 +2677,14 @@ var WorkflowsMSSQL = class extends storage.WorkflowsStorage {
|
|
|
2677
2677
|
snapshot = {
|
|
2678
2678
|
context: {},
|
|
2679
2679
|
activePaths: [],
|
|
2680
|
+
activeStepsPath: {},
|
|
2680
2681
|
timestamp: Date.now(),
|
|
2681
2682
|
suspendedPaths: {},
|
|
2682
2683
|
resumeLabels: {},
|
|
2683
2684
|
serializedStepGraph: [],
|
|
2685
|
+
status: "pending",
|
|
2684
2686
|
value: {},
|
|
2685
2687
|
waitingPaths: {},
|
|
2686
|
-
status: "pending",
|
|
2687
2688
|
runId,
|
|
2688
2689
|
requestContext: {}
|
|
2689
2690
|
};
|
|
@@ -2913,7 +2914,8 @@ var WorkflowsMSSQL = class extends storage.WorkflowsStorage {
|
|
|
2913
2914
|
toDate,
|
|
2914
2915
|
page,
|
|
2915
2916
|
perPage,
|
|
2916
|
-
resourceId
|
|
2917
|
+
resourceId,
|
|
2918
|
+
status
|
|
2917
2919
|
} = {}) {
|
|
2918
2920
|
try {
|
|
2919
2921
|
const conditions = [];
|
|
@@ -2922,6 +2924,10 @@ var WorkflowsMSSQL = class extends storage.WorkflowsStorage {
|
|
|
2922
2924
|
conditions.push(`[workflow_name] = @workflowName`);
|
|
2923
2925
|
paramMap["workflowName"] = workflowName;
|
|
2924
2926
|
}
|
|
2927
|
+
if (status) {
|
|
2928
|
+
conditions.push(`JSON_VALUE([snapshot], '$.status') = @status`);
|
|
2929
|
+
paramMap["status"] = status;
|
|
2930
|
+
}
|
|
2925
2931
|
if (resourceId) {
|
|
2926
2932
|
const hasResourceId = await this.operations.hasColumn(storage.TABLE_WORKFLOW_SNAPSHOT, "resourceId");
|
|
2927
2933
|
if (hasResourceId) {
|
|
@@ -3190,15 +3196,8 @@ var MSSQLStore = class extends storage.MastraStorage {
|
|
|
3190
3196
|
}) {
|
|
3191
3197
|
return this.stores.workflows.loadWorkflowSnapshot({ workflowName, runId });
|
|
3192
3198
|
}
|
|
3193
|
-
async listWorkflowRuns({
|
|
3194
|
-
|
|
3195
|
-
fromDate,
|
|
3196
|
-
toDate,
|
|
3197
|
-
perPage,
|
|
3198
|
-
page,
|
|
3199
|
-
resourceId
|
|
3200
|
-
} = {}) {
|
|
3201
|
-
return this.stores.workflows.listWorkflowRuns({ workflowName, fromDate, toDate, perPage, page, resourceId });
|
|
3199
|
+
async listWorkflowRuns(args = {}) {
|
|
3200
|
+
return this.stores.workflows.listWorkflowRuns(args);
|
|
3202
3201
|
}
|
|
3203
3202
|
async getWorkflowRunById({
|
|
3204
3203
|
runId,
|