@mastra/libsql 1.0.0-beta.0 → 1.0.0-beta.1

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/dist/index.js CHANGED
@@ -2853,11 +2853,12 @@ var WorkflowsLibSQL = class extends WorkflowsStorage {
2853
2853
  activePaths: [],
2854
2854
  timestamp: Date.now(),
2855
2855
  suspendedPaths: {},
2856
+ activeStepsPath: {},
2856
2857
  resumeLabels: {},
2857
2858
  serializedStepGraph: [],
2859
+ status: "pending",
2858
2860
  value: {},
2859
2861
  waitingPaths: {},
2860
- status: "pending",
2861
2862
  runId,
2862
2863
  requestContext: {}
2863
2864
  };
@@ -2990,7 +2991,8 @@ var WorkflowsLibSQL = class extends WorkflowsStorage {
2990
2991
  toDate,
2991
2992
  page,
2992
2993
  perPage,
2993
- resourceId
2994
+ resourceId,
2995
+ status
2994
2996
  } = {}) {
2995
2997
  try {
2996
2998
  const conditions = [];
@@ -2999,6 +3001,10 @@ var WorkflowsLibSQL = class extends WorkflowsStorage {
2999
3001
  conditions.push("workflow_name = ?");
3000
3002
  args.push(workflowName);
3001
3003
  }
3004
+ if (status) {
3005
+ conditions.push("json_extract(snapshot, '$.status') = ?");
3006
+ args.push(status);
3007
+ }
3002
3008
  if (fromDate) {
3003
3009
  conditions.push("createdAt >= ?");
3004
3010
  args.push(fromDate.toISOString());
@@ -3229,15 +3235,8 @@ var LibSQLStore = class extends MastraStorage {
3229
3235
  }) {
3230
3236
  return this.stores.workflows.loadWorkflowSnapshot({ workflowName, runId });
3231
3237
  }
3232
- async listWorkflowRuns({
3233
- workflowName,
3234
- fromDate,
3235
- toDate,
3236
- perPage,
3237
- page,
3238
- resourceId
3239
- } = {}) {
3240
- return this.stores.workflows.listWorkflowRuns({ workflowName, fromDate, toDate, perPage, page, resourceId });
3238
+ async listWorkflowRuns(args = {}) {
3239
+ return this.stores.workflows.listWorkflowRuns(args);
3241
3240
  }
3242
3241
  async getWorkflowRunById({
3243
3242
  runId,