import { agentPanelRegistration } from "@/panels/agent-panel"; import { browserPanelRegistration } from "@/panels/browser-panel"; import { commitDiffPanelRegistration } from "@/panels/commit-diff-panel"; import { draftPanelRegistration } from "@/panels/draft-panel"; import { filePanelRegistration } from "@/panels/file-panel"; import { registerPanel } from "@/panels/panel-registry"; import { setupPanelRegistration } from "@/panels/setup-panel"; import { terminalPanelRegistration } from "@/panels/terminal-panel"; import { providerSubagentPanelRegistration } from "@/panels/provider-subagent-panel"; let panelsRegistered = false; export function ensurePanelsRegistered(): void { if (panelsRegistered) { return; } registerPanel(draftPanelRegistration); registerPanel(agentPanelRegistration); registerPanel(providerSubagentPanelRegistration); registerPanel(setupPanelRegistration); registerPanel(terminalPanelRegistration); registerPanel(browserPanelRegistration); registerPanel(filePanelRegistration); registerPanel(commitDiffPanelRegistration); panelsRegistered = true; }