@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/.turbo/turbo-build.log +10 -10
- package/CHANGELOG.md +9 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/stores/LocalWorkflowTrackingStore.ts +9 -0
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 = [];
|