Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix(control-ui): read owned-entry type from entryType (camelCase) for label
Andy Paviad8d130fac1e6
diff --git a/control-ui/components/PublisherView/OwnedEntries.tsx b/control-ui/components/PublisherView/OwnedEntries.tsxindex 0f41a58a4..2238d8ec9 100644--- a/control-ui/components/PublisherView/OwnedEntries.tsx+++ b/control-ui/components/PublisherView/OwnedEntries.tsx@@ -75,8 +75,13 @@ function groupByName(// (mcp-servers always have a serverMode; recipes don't). Prefer an explicit// entry_type if the registry ever starts sending it, else infer from serverMode.// "Connector" / "Plugin" mirror the labels in PublishToRegistryForm.+function ownedEntryKind(e: OwnedRegistryEntry): string {+ // Wire field is `entryType` (camelCase); `entry_type` kept as a fallback.+ return e.entryType ?? e.entry_type ?? (e.serverMode != null ? 'mcp-server' : 'recipe')+}+function entryTypeLabel(e: OwnedRegistryEntry): string {- const kind = e.entry_type ?? (e.serverMode != null ? 'mcp-server' : 'recipe')+ const kind = ownedEntryKind(e)if (kind === 'mcp-server') return 'Connector'if (kind === 'llm-hook') return 'Guardrail hook'return 'Plugin'@@ -171,7 +176,7 @@ export function OwnedEntries({}, [])function isInstalled(e: OwnedRegistryEntry): boolean {- const kind = e.entry_type ?? (e.serverMode != null ? 'mcp-server' : 'recipe')+ const kind = ownedEntryKind(e)const key = `${e.name}@${e.version}`if (kind === 'mcp-server') {return installedCatalogKeys.has(key) || installedServerNames.has(e.name)diff --git a/control-ui/lib/api.ts b/control-ui/lib/api.tsindex fb608fa32..00d69f6e5 100644--- a/control-ui/lib/api.ts+++ b/control-ui/lib/api.ts@@ -3014,10 +3014,12 @@ export type OwnedRegistryEntry = {version: stringvisibility: 'public' | 'private'status: string // "published" | "deprecated" | "removed"- entry_type?: string // "mcp-server" | "recipe"- // Present ("local"/"remote") for mcp-servers, null/absent for recipes. The- // registry's /org/:org/entries returns this but NOT entry_type, so the- // Publisher's Type column infers Connector/Plugin from it (see OwnedEntries).+ // The registry's /org/:org/entries returns the type as `entryType` (camelCase),+ // NOT `entry_type`; keep both so the Publisher's Type column reads it directly+ // instead of mis-inferring "Plugin" for llm-hook entries (see OwnedEntries).+ entryType?: string // "mcp-server" | "recipe" | "llm-hook"+ entry_type?: string+ // Present ("local"/"remote") for mcp-servers, null/absent for others.serverMode?: string | null}export type OwnedRegistryEntriesResponse = {diff --git a/control-ui/package-lock.json b/control-ui/package-lock.jsonindex c555b1a8f..2dab034a7 100644--- a/control-ui/package-lock.json+++ b/control-ui/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-control-ui",- "version": "0.1.392",+ "version": "0.1.393","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-control-ui",- "version": "0.1.392",+ "version": "0.1.393","dependencies": {"@clerum/llm-providers": "file:../packages/llm-providers","@clerum/workflow-recipe-capability-policy": "file:../packages/workflow-recipe-capability-policy",diff --git a/control-ui/package.json b/control-ui/package.jsonindex 3ac24d536..dd8c70fc9 100644--- a/control-ui/package.json+++ b/control-ui/package.json@@ -1,6 +1,6 @@{"name": "clerum-control-ui",- "version": "0.1.392",+ "version": "0.1.393","private": true,"scripts": {"dev": "NEXT_IGNORE_INCORRECT_LOCKFILE=1 next dev",