fix(electrobun): wizard 7 fixes — validation, GitLab, SSHFS, icons, model dropdown, keyboard nav

- Git Platform: validates repo via git.probe before enabling Next, supports GitHub + GitLab + any git URL
- Template dir configurable in Advanced Settings (template_dir key)
- SSHFS: checks sshfs availability, mountpoint selector when enabled
- CustomDropdown: flip-up when insufficient space below
- 50 Lucide icons (was 24) with categories (AI, Data, DevOps, Security, Media, Comms)
- Model: CustomDropdown from live API, max_tokens as slider, effort only with adaptive thinking
- Keyboard: Escape closes wizard, Tab navigation with :focus-visible rings, source cards navigable
This commit is contained in:
Hibryda 2026-03-23 14:20:30 +01:00
parent 41b8d46a19
commit 021feba3ed
11 changed files with 368 additions and 614 deletions

View file

@ -8,6 +8,15 @@ import { execSync, spawn } from "child_process";
export function createGitHandlers() {
return {
"ssh.checkSshfs": async () => {
try {
const sshfsPath = execSync("which sshfs", { encoding: "utf8", timeout: 3000 }).trim();
return { installed: true, path: sshfsPath };
} catch {
return { installed: false, path: null };
}
},
"git.branches": async ({ path: repoPath }: { path: string }) => {
try {
const resolved = path.resolve(repoPath.replace(/^~/, process.env.HOME ?? ""));