Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix(control-api): resync expired current feed cursors
Josuéd5f7e325def1
diff --git a/control-api/package-lock.json b/control-api/package-lock.jsonindex a5035d477..beaecc0fd 100644--- a/control-api/package-lock.json+++ b/control-api/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-control-api",- "version": "0.1.607",+ "version": "0.1.608","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-control-api",- "version": "0.1.607",+ "version": "0.1.608","dependencies": {"@clerum/display-field": "file:../packages/display-field","@clerum/grok-provider-attempt-contract": "file:../packages/grok-provider-attempt-contract",diff --git a/control-api/package.json b/control-api/package.jsonindex 59d3d2ffd..9919d7f2e 100644--- a/control-api/package.json+++ b/control-api/package.json@@ -1,6 +1,6 @@{"name": "clerum-control-api",- "version": "0.1.607",+ "version": "0.1.608","description": "Internal Clerum control plane REST API + UI for managing CRDs and secrets","main": "dist/main.js","engines": {diff --git a/control-api/src/services/entityChangeSchema.ts b/control-api/src/services/entityChangeSchema.tsindex 47ecac513..f2f68e83a 100644--- a/control-api/src/services/entityChangeSchema.ts+++ b/control-api/src/services/entityChangeSchema.ts@@ -265,7 +265,8 @@ export async function applyEntityChangeSchema(db: DbClient): Promise<void> {SELECT sequence INTO cursor_sequence FROM public.entity_change_feedWHERE cursor = requested_cursor;END IF;- IF cursor_sequence IS NULL AND requested_cursor = current_cursor THEN+ IF cursor_sequence IS NULL AND requested_cursor = current_cursor AND+ current_watermark > pruned_watermark THENcursor_sequence := current_watermark;END IF;IF cursor_sequence IS NULL OR cursor_sequence < pruned_watermark OR