import { Cloud, PlayCircle, Terminal, Cpu } from "lucide-react"; import type { AgentInfo, AgentModeInfo, UniversalEvent } from "sandbox-agent"; import AgentsTab from "./AgentsTab"; import EventsTab from "./EventsTab"; import ProcessesTab from "./ProcessesTab"; import RequestLogTab from "./RequestLogTab"; import type { RequestLog } from "../../types/requestLog"; export type DebugTab = "log" | "events" | "agents" | "processes"; const DebugPanel = ({ debugTab, onDebugTabChange, events, offset, onResetEvents, eventsError, requestLog, copiedLogId, onClearRequestLog, onCopyRequestLog, agents, defaultAgents, modesByAgent, onRefreshAgents, onInstallAgent, agentsLoading, agentsError, baseUrl, token }: { debugTab: DebugTab; onDebugTabChange: (tab: DebugTab) => void; events: UniversalEvent[]; offset: number; onResetEvents: () => void; eventsError: string | null; requestLog: RequestLog[]; copiedLogId: number | null; onClearRequestLog: () => void; onCopyRequestLog: (entry: RequestLog) => void; agents: AgentInfo[]; defaultAgents: string[]; modesByAgent: Record; onRefreshAgents: () => void; onInstallAgent: (agentId: string, reinstall: boolean) => void; agentsLoading: boolean; agentsError: string | null; baseUrl: string; token?: string; }) => { return (
{debugTab === "log" && ( )} {debugTab === "events" && ( )} {debugTab === "agents" && ( )} {debugTab === "processes" && ( )}
); }; export default DebugPanel;