Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix(codex): restore legacy catalog snapshot and mcp-host binding types
Alfredo Lopez935dda22b60a
diff --git a/host-context-controller/package-lock.json b/host-context-controller/package-lock.jsonindex f406d893c..c7d20368b 100644--- a/host-context-controller/package-lock.json+++ b/host-context-controller/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-host-context-controller",- "version": "0.1.240",+ "version": "0.1.241","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-host-context-controller",- "version": "0.1.240",+ "version": "0.1.241","license": "SEE LICENSE IN LICENSE","dependencies": {"@clerum/image-policy": "file:../packages/image-policy",diff --git a/host-context-controller/package.json b/host-context-controller/package.jsonindex f98cd3935..6209f2f48 100644--- a/host-context-controller/package.json+++ b/host-context-controller/package.json@@ -1,6 +1,6 @@{"name": "clerum-host-context-controller",- "version": "0.1.240",+ "version": "0.1.241","description": "Host Context Controller - provides McpServer CRDs to mcp-host via REST API","main": "dist/main.js","engines": {diff --git a/host-context-controller/src/llmAllowedModelsSnapshot.ts b/host-context-controller/src/llmAllowedModelsSnapshot.tsindex aea82b2e7..78e6ef5e0 100644--- a/host-context-controller/src/llmAllowedModelsSnapshot.ts+++ b/host-context-controller/src/llmAllowedModelsSnapshot.ts@@ -118,10 +118,9 @@ export function parseAllowedModelsSnapshot(} catch {return snapshotFromConfigMapError('malformed')}- } else if (connectionKey !== 'deployment-default') {- connectionStatus = 'disconnected'- dropCodexModels(enabledModels, staleModels)}+ // No connections map: keep the flat catalog (legacy single-grant). Do not+ // invent deployment-default; a multi-grant map already fail-closed above.return {flagEnabled: annotations[CODEX_ENABLED_ANNOTATION] === 'true',connectionStatus,diff --git a/mcp-host/package-lock.json b/mcp-host/package-lock.jsonindex 7417d2180..ec66e3011 100644--- a/mcp-host/package-lock.json+++ b/mcp-host/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-mcp-host",- "version": "0.1.286",+ "version": "0.1.287","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-mcp-host",- "version": "0.1.286",+ "version": "0.1.287","license": "SEE LICENSE IN LICENSE","dependencies": {"@anthropic-ai/sdk": "^0.32.0",diff --git a/mcp-host/package.json b/mcp-host/package.jsonindex d721a713b..3c82643f8 100644--- a/mcp-host/package.json+++ b/mcp-host/package.json@@ -1,6 +1,6 @@{"name": "clerum-mcp-host",- "version": "0.1.286",+ "version": "0.1.287","description": "MCP Host - reads Host CRD and provides LLM access via OpenAI/Claude","main": "dist/main.js","engines": {diff --git a/mcp-host/src/config/configStore.ts b/mcp-host/src/config/configStore.tsindex 4bc7a5bd5..8bda36df3 100644--- a/mcp-host/src/config/configStore.ts+++ b/mcp-host/src/config/configStore.ts@@ -934,7 +934,7 @@ function parseOptionalIntegerAnnotation(function parseCodexPolicyBinding(annotations: Record<string, string> | undefined,- connectionKey = CODEX_UNASSIGNED_CONNECTION_KEY+ connectionKey: string = CODEX_UNASSIGNED_CONNECTION_KEY): CodexPolicyBinding | null {if (!annotations || connectionKey === CODEX_UNASSIGNED_CONNECTION_KEY) return nulllet catalogRevision = parseOptionalIntegerAnnotation(annotations, CATALOG_REVISION_ANNOTATION)diff --git a/workflow-recipes/package-lock.json b/workflow-recipes/package-lock.jsonindex ae2f4932d..4ba56d3dd 100644--- a/workflow-recipes/package-lock.json+++ b/workflow-recipes/package-lock.json@@ -1,12 +1,12 @@{"name": "workload-recipes-controller",- "version": "0.1.308",+ "version": "0.1.309","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "workload-recipes-controller",- "version": "0.1.308",+ "version": "0.1.309","license": "SEE LICENSE IN LICENSE","dependencies": {"@aws-sdk/client-s3": "^3.1009.0",diff --git a/workflow-recipes/package.json b/workflow-recipes/package.jsonindex 2546f6c4f..a4d034678 100644--- a/workflow-recipes/package.json+++ b/workflow-recipes/package.json@@ -1,6 +1,6 @@{"name": "workload-recipes-controller",- "version": "0.1.308",+ "version": "0.1.309","description": "Workload Recipes Controller (WRC) - WorkloadRecipe lifecycle management and MCP server interface","main": "dist/main.js","engines": {diff --git a/workflow-recipes/src/workflow/llmAllowedModelsSnapshot.ts b/workflow-recipes/src/workflow/llmAllowedModelsSnapshot.tsindex b17fca862..dad4fb2cc 100644--- a/workflow-recipes/src/workflow/llmAllowedModelsSnapshot.ts+++ b/workflow-recipes/src/workflow/llmAllowedModelsSnapshot.ts@@ -119,10 +119,9 @@ export function parseAllowedModelsSnapshot(} catch {return snapshotFromConfigMapError('malformed')}- } else if (connectionKey !== 'deployment-default') {- connectionStatus = 'disconnected'- dropCodexModels(enabledModels, staleModels)}+ // No connections map: keep the flat catalog (legacy single-grant). Do not+ // invent deployment-default; a multi-grant map already fail-closed above.return {flagEnabled: annotations[CODEX_ENABLED_ANNOTATION] === 'true',connectionStatus,