@axiom-lattice/local-stores 1.0.1 → 1.0.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/dist/index.mjs CHANGED
@@ -1507,6 +1507,13 @@ var LocalWorkflowTrackingStore = class {
1507
1507
  updatedAt: parseISO(now)
1508
1508
  };
1509
1509
  }
1510
+ async upsertRunStep(request) {
1511
+ const row = this.db.prepare(
1512
+ `SELECT * FROM lt_workflow_steps WHERE run_id = ? AND step_type = ? AND step_name = ?`
1513
+ ).get(request.runId, request.stepType, request.stepName);
1514
+ if (row) return mapRowToStep(row);
1515
+ return this.createRunStep(request);
1516
+ }
1510
1517
  async updateRunStep(runId, stepId, updates) {
1511
1518
  const setClauses = [];
1512
1519
  const values = [];