Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
feat(control-ui): show entry Type (Connector/Plugin) on Published entries
Jose Ramirez8641798cdbff
diff --git a/control-ui/components/PublisherView/OwnedEntries.tsx b/control-ui/components/PublisherView/OwnedEntries.tsxindex 594c64d6a..d6b7b3996 100644--- a/control-ui/components/PublisherView/OwnedEntries.tsx+++ b/control-ui/components/PublisherView/OwnedEntries.tsx@@ -10,6 +10,7 @@ import { ShareAccessPanel } from './ShareAccessPanel'const COLUMNS: TableHeaderColumn[] = [{ key: 'name', label: 'Name' },+ { key: 'type', label: 'Type' },{ key: 'version', label: 'Version' },{ key: 'visibility', label: 'Visibility' },{ key: 'status', label: 'Status' },@@ -20,6 +21,15 @@ function entryKey(e: OwnedRegistryEntry): string {return `${e.name}@${e.version}`}+// The registry's owned-entries payload carries `serverMode` but not `entry_type`+// (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 entryTypeLabel(e: OwnedRegistryEntry): string {+ const kind = e.entry_type ?? (e.serverMode != null ? 'mcp-server' : 'recipe')+ return kind === 'mcp-server' ? 'Connector' : 'Plugin'+}+export function OwnedEntries({ orgScope }: { orgScope: string }) {const [entries, setEntries] = useState<OwnedRegistryEntry[]>([])const [loading, setLoading] = useState(true)@@ -70,6 +80,7 @@ export function OwnedEntries({ orgScope }: { orgScope: string }) {<td><code>{e.name}</code></td>+ <td>{entryTypeLabel(e)}</td><td>{e.version}</td><td><spandiff --git a/control-ui/components/__tests__/OwnedEntries.test.tsx b/control-ui/components/__tests__/OwnedEntries.test.tsxindex 017b3ca1b..960ff3244 100644--- a/control-ui/components/__tests__/OwnedEntries.test.tsx+++ b/control-ui/components/__tests__/OwnedEntries.test.tsx@@ -34,6 +34,51 @@ describe('OwnedEntries', () => {expect(screen.getByText('@acme/pub')).toBeInTheDocument()})+ it('Type column shows Connector for mcp-servers (serverMode) and Plugin for recipes', async () => {+ vi.mocked(api.getOwnedRegistryEntries).mockResolvedValue({+ data: [+ {+ name: '@acme/conn',+ version: '1.0.0',+ visibility: 'public',+ status: 'published',+ serverMode: 'local',+ },+ {+ name: '@acme/plug',+ version: '1.0.0',+ visibility: 'public',+ status: 'published',+ serverMode: null,+ },+ ],+ })+ render(<OwnedEntries orgScope="acme" />)+ await screen.findByText('@acme/conn')+ expect(screen.getByText('Connector')).toBeInTheDocument()+ expect(screen.getByText('Plugin')).toBeInTheDocument()+ })++ it('Type prefers explicit entry_type over the serverMode inference', async () => {+ vi.mocked(api.getOwnedRegistryEntries).mockResolvedValue({+ data: [+ {+ name: '@acme/x',+ version: '1.0.0',+ visibility: 'public',+ status: 'published',+ entry_type: 'recipe',+ serverMode: 'local',+ },+ ],+ })+ render(<OwnedEntries orgScope="acme" />)+ await screen.findByText('@acme/x')+ // entry_type 'recipe' wins even though serverMode is set → "Plugin".+ expect(screen.getByText('Plugin')).toBeInTheDocument()+ expect(screen.queryByText('Connector')).toBeNull()+ })+it('shows Share access only for private entries; public shows a no-grant note', async () => {vi.mocked(api.getOwnedRegistryEntries).mockResolvedValue({data: [diff --git a/control-ui/lib/api.ts b/control-ui/lib/api.tsindex 6947ea79c..53cf6a997 100644--- a/control-ui/lib/api.ts+++ b/control-ui/lib/api.ts@@ -1209,9 +1209,7 @@ export async function deleteMcpSecret(name: string) {}export type RecipeSecretOwnership =- | { kind: 'shared' }- | { kind: 'owner-recipe'; recipeName: string }- | { kind: 'unlabeled' }+ { kind: 'shared' } | { kind: 'owner-recipe'; recipeName: string } | { kind: 'unlabeled' }export type RecipeSecretItem = {name: string@@ -1930,13 +1928,7 @@ export type WorkflowRecipePhase =| 'rollback-failed'export type WorkflowExecutionPhase =- | 'pending'- | 'initializing'- | 'running'- | 'completed'- | 'failed'- | 'cancelled'- | 'recovering'+ 'pending' | 'initializing' | 'running' | 'completed' | 'failed' | 'cancelled' | 'recovering'export type WorkflowRecipeStatus = {phase?: WorkflowRecipePhase@@ -2729,6 +2721,10 @@ export type OwnedRegistryEntry = {visibility: '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).+ serverMode?: string | null}export type OwnedRegistryEntriesResponse = {data: OwnedRegistryEntry[]@@ -2815,8 +2811,7 @@ export async function listOrgGrants(pluginName?: string): Promise<{ grants: OrgGexport async function createOrgGrant(input: CreateOrgGrantInput): Promise<OrgGrant> {const raw = (await registryCodedRequest('POST', '/api/v1/admin/registry/grants', input)) as- | RawOrgGrant- | undefined+ RawOrgGrant | undefinedreturn normalizeOrgGrant(raw ?? {})}@@ -3076,12 +3071,7 @@ export type PluginWorkloadSdkQuotaCounter = {}export type PluginWorkloadSdkInvocationStatus =- | 'in_progress'- | 'complete'- | 'failed'- | 'provider_unavailable'- | 'accepted'- | 'delivered'+ 'in_progress' | 'complete' | 'failed' | 'provider_unavailable' | 'accepted' | 'delivered'export type PluginWorkloadSdkInvocation = {id: string@@ -3264,11 +3254,7 @@ export async function revokeRegistryApiKey(id: string): Promise<void> {// There is NO rejection_reason in the contract.export type RegistryConnectionState =- | 'disconnected'- | 'pending'- | 'approved'- | 'rejected'- | 'connected'+ 'disconnected' | 'pending' | 'approved' | 'rejected' | 'connected'export type RegistryConnectionStatus = {state: RegistryConnectionStatedeploymentId?: stringdiff --git a/control-ui/package-lock.json b/control-ui/package-lock.jsonindex ab6c0d8a9..9c7d4b5ee 100644--- a/control-ui/package-lock.json+++ b/control-ui/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-control-ui",- "version": "0.1.333",+ "version": "0.1.334","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-control-ui",- "version": "0.1.333",+ "version": "0.1.334","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 187c35ed7..0bfc42d48 100644--- a/control-ui/package.json+++ b/control-ui/package.json@@ -1,6 +1,6 @@{"name": "clerum-control-ui",- "version": "0.1.333",+ "version": "0.1.334","private": true,"scripts": {"dev": "NEXT_IGNORE_INCORRECT_LOCKFILE=1 next dev",