Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix(gfsc): name 0097_gfs_upload_sessions in the upload v2 readiness error (#686)
ALFREDO J LOPEZ H (alfredolopez80.eth)4e51ed1b9274
diff --git a/control-api/package-lock.json b/control-api/package-lock.jsonindex cf98c3332..e07f53919 100644--- a/control-api/package-lock.json+++ b/control-api/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-control-api",- "version": "0.1.580",+ "version": "0.1.581","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-control-api",- "version": "0.1.580",+ "version": "0.1.581","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 f32194a25..55b75e8bf 100644--- a/control-api/package.json+++ b/control-api/package.json@@ -1,6 +1,6 @@{"name": "clerum-control-api",- "version": "0.1.580",+ "version": "0.1.581","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/gfsUploadSchema.ts b/control-api/src/services/gfsUploadSchema.tsindex 4d9e4f14f..cbdd978e0 100644--- a/control-api/src/services/gfsUploadSchema.ts+++ b/control-api/src/services/gfsUploadSchema.ts@@ -82,7 +82,7 @@ export async function applyGfsUploadSessionSchema(db: DbClient): Promise<void> {`)}-/** Additive follow-up for installations that already applied migration 0091. */+/** Additive follow-up for installations that already applied migration 0097_gfs_upload_sessions. */export async function applyGfsUploadCleanupSchema(db: DbClient): Promise<void> {await db.query(`ALTER TABLE IF EXISTS gfs_upload_sessions ADD COLUMN IF NOT EXISTS cleanup_at TIMESTAMPTZ NULL`diff --git a/gfs-controller/src/index.ts b/gfs-controller/src/index.tsindex 58e38bc08..1a4cf9f38 100644--- a/gfs-controller/src/index.ts+++ b/gfs-controller/src/index.ts@@ -38,7 +38,7 @@ async function assertUploadV2Ready(to_regclass('public.gfs_upload_parts')::text AS parts`);const row = tables.rows[0] as { sessions?: string | null; parts?: string | null } | undefined;- if (!row?.sessions || !row.parts) throw new Error("[gfsc] GFS_UPLOAD_V2_ENABLED requires migration 0091 upload tables");+ if (!row?.sessions || !row.parts) throw new Error("[gfsc] GFS_UPLOAD_V2_ENABLED requires the upload tables from migration 0097_gfs_upload_sessions");if (storageRole === "writer") {const info = await stat(storageMountPath);if (!info.isDirectory()) throw new Error("[gfsc] GFS_UPLOAD_V2_ENABLED requires a writable GFS storage directory");