import { ChevronLeft, ChevronRight, Cloud, PlayCircle, Server, Terminal, Wrench } from "lucide-react"; import type { AgentInfo, SandboxAgent, SessionEvent } from "sandbox-agent"; type AgentModeInfo = { id: string; name: string; description: string }; import AgentsTab from "./AgentsTab"; import EventsTab from "./EventsTab"; import McpTab from "./McpTab"; import SkillsTab from "./SkillsTab"; import RequestLogTab from "./RequestLogTab"; import type { RequestLog } from "../../types/requestLog"; export type DebugTab = "log" | "events" | "agents" | "mcp" | "skills"; const DebugPanel = ({ debugTab, onDebugTabChange, events, onResetEvents, highlightedEventId, onClearHighlight, requestLog, copiedLogId, onClearRequestLog, onCopyRequestLog, agents, defaultAgents, modesByAgent, onRefreshAgents, onInstallAgent, agentsLoading, agentsError, getClient, collapsed, onToggleCollapse, }: { debugTab: DebugTab; onDebugTabChange: (tab: DebugTab) => void; events: SessionEvent[]; onResetEvents: () => void; highlightedEventId?: string | null; onClearHighlight?: () => void; requestLog: RequestLog[]; copiedLogId: number | null; onClearRequestLog: () => void; onCopyRequestLog: (entry: RequestLog) => void; agents: AgentInfo[]; defaultAgents: string[]; modesByAgent: Record; onRefreshAgents: () => void; onInstallAgent: (agentId: string, reinstall: boolean) => Promise; agentsLoading: boolean; agentsError: string | null; getClient: () => SandboxAgent; collapsed?: boolean; onToggleCollapse?: () => void; }) => { return (
{debugTab === "log" && ( )} {debugTab === "events" && ( )} {debugTab === "agents" && ( )} {debugTab === "mcp" && ( )} {debugTab === "skills" && ( )}
); }; export default DebugPanel;