'use client';
import type { AgentRecord } from '../../lib/agent-registry';
import { ProjectScopeControls } from '../shared/project-scope-controls';
import type { ProjectScopeOption } from '../../lib/project-scope';
interface SessionsHeaderProps {
agents: AgentRecord[];
activeAgentId: string | null;
onSelectAgent: (id: string | null) => void;
projectScopeKey: string;
projectScopeMode: 'single' | 'aggregate';
projectScopeOptions: ProjectScopeOption[];
stats?: {
active: number;
needsInput: number;
completed: number;
};
}
export function SessionsHeader({
agents,
activeAgentId,
onSelectAgent,
projectScopeKey,
projectScopeMode,
projectScopeOptions,
stats,
}: SessionsHeaderProps) {
return (
{/* Row 1: Agent Command Deck */}
{agents.map((agent) => (
))}
{/* Row 2: Management & Meta */}
Load Pulse
{stats && (
)}
);
}
function AgentStation({
agent,
isSelected,
onSelect
}: {
agent: AgentRecord,
isSelected: boolean,
onSelect: (id: string | null) => void
}) {
const isActive = agent.status !== 'idle';
return (
);
}
function StatPill({ label, value, color }: { label: string, value: number, color: string }) {
return (
{label}
{value}
);
}