async function handleCommandActions(event, target, action, repository) { if (action === "run-command") { const command = target.dataset.command; ui.modal = null; if (command === "overview") ui.currentView = "overview"; else if (command === "deployments") ui.currentView = "deployments"; else if (command === "diagnostics") ui.currentView = "diagnostics"; else if (command === "settings") ui.currentView = "settings"; else if (command === "refresh") await refreshRepositories(true); else if (command === "open-folder" && repository?.localPath) await window.forgeflow.openPath(repository.localPath); else if (command === "git-tools" && repository) await loadGitTools(repository); else if (command === "deploy-selected" && canDeploy(repository)) { const profile = selectedProfile(repository); if (profile) await runDeploymentPreflight(repository, profile.id); } render(); } else return false; return true; }