@mastra/libsql 0.16.3 → 0.16.4-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 +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 +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/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -3246,11 +3246,12 @@ var WorkflowsLibSQL = class extends WorkflowsStorage {
|
|
|
3246
3246
|
activePaths: [],
|
|
3247
3247
|
timestamp: Date.now(),
|
|
3248
3248
|
suspendedPaths: {},
|
|
3249
|
+
activeStepsPath: {},
|
|
3249
3250
|
resumeLabels: {},
|
|
3250
3251
|
serializedStepGraph: [],
|
|
3252
|
+
status: "pending",
|
|
3251
3253
|
value: {},
|
|
3252
3254
|
waitingPaths: {},
|
|
3253
|
-
status: "pending",
|
|
3254
3255
|
runId,
|
|
3255
3256
|
runtimeContext: {}
|
|
3256
3257
|
};
|
|
@@ -3383,7 +3384,8 @@ var WorkflowsLibSQL = class extends WorkflowsStorage {
|
|
|
3383
3384
|
toDate,
|
|
3384
3385
|
limit,
|
|
3385
3386
|
offset,
|
|
3386
|
-
resourceId
|
|
3387
|
+
resourceId,
|
|
3388
|
+
status
|
|
3387
3389
|
} = {}) {
|
|
3388
3390
|
try {
|
|
3389
3391
|
const conditions = [];
|
|
@@ -3392,6 +3394,10 @@ var WorkflowsLibSQL = class extends WorkflowsStorage {
|
|
|
3392
3394
|
conditions.push("workflow_name = ?");
|
|
3393
3395
|
args.push(workflowName);
|
|
3394
3396
|
}
|
|
3397
|
+
if (status) {
|
|
3398
|
+
conditions.push("json_extract(snapshot, '$.status') = ?");
|
|
3399
|
+
args.push(status);
|
|
3400
|
+
}
|
|
3395
3401
|
if (fromDate) {
|
|
3396
3402
|
conditions.push("createdAt >= ?");
|
|
3397
3403
|
args.push(fromDate.toISOString());
|
|
@@ -3663,15 +3669,8 @@ var LibSQLStore = class extends MastraStorage {
|
|
|
3663
3669
|
}) {
|
|
3664
3670
|
return this.stores.workflows.loadWorkflowSnapshot({ workflowName, runId });
|
|
3665
3671
|
}
|
|
3666
|
-
async getWorkflowRuns({
|
|
3667
|
-
|
|
3668
|
-
fromDate,
|
|
3669
|
-
toDate,
|
|
3670
|
-
limit,
|
|
3671
|
-
offset,
|
|
3672
|
-
resourceId
|
|
3673
|
-
} = {}) {
|
|
3674
|
-
return this.stores.workflows.getWorkflowRuns({ workflowName, fromDate, toDate, limit, offset, resourceId });
|
|
3672
|
+
async getWorkflowRuns(args = {}) {
|
|
3673
|
+
return this.stores.workflows.getWorkflowRuns(args);
|
|
3675
3674
|
}
|
|
3676
3675
|
async getWorkflowRunById({
|
|
3677
3676
|
runId,
|