'use client'; import Link from 'next/link'; import { AgentProfile, AgentRuntime, getAgentKindIcon, getAgentStatusColor } from '@/lib/agent-dashboard'; import { StatusBadge } from '@/components/node-dashboard'; import { getGovLevelBadge } from '@/lib/types/agents'; import { Shield, Fingerprint, Building2 } from 'lucide-react'; interface AgentSummaryCardProps { profile: AgentProfile; runtime?: AgentRuntime; } export function AgentSummaryCard({ profile, runtime }: AgentSummaryCardProps) { const kindIcon = getAgentKindIcon(profile.kind); const govBadge = getGovLevelBadge(profile.gov_level); return (
{/* Avatar */}
{profile.dais.vis?.avatar_url ? ( {profile.display_name} ) : (
{kindIcon}
)}
{/* Info */}

{profile.display_name}

{profile.agent_id}

{profile.dais.core.bio && (

{profile.dais.core.bio}

)} {/* Tags */}
{kindIcon} {profile.kind} {/* Gov Level Badge (A1) */} {profile.gov_level && ( {govBadge.label} )} {/* DAIS Identity (A2) */} {profile.dais_identity_id && ( {profile.dais_identity_id} )} {profile.roles.map(role => ( {role} ))}
{/* Home MicroDAO (A3) */} {(profile.home_microdao_id || profile.primary_microdao_id) && (
Belongs to: {profile.home_microdao_name || profile.primary_microdao_name}
)} {/* Runtime info */} {runtime && (
{runtime.health === 'healthy' ? 'Healthy' : 'Degraded'}
{profile.node_id && ( 📍 {profile.node_id} )}
)}
); }