Commit graph

6 commits

Author SHA1 Message Date
Hibryda
a4d180d382 fix(electrobun): wizard fixes — native dialog, models, PathBrowser, ensureDir
- Native dialog: resolve to nearest existing parent dir, detect user cancel
  (exit code 1) vs actual error, add createIfMissing option
- Claude models: fallback to KNOWN_CLAUDE_MODELS (6 models) when API key
  unavailable. Adds Opus 4.6, Sonnet 4.6, Opus 4.5, Sonnet 4, Haiku 4.5,
  Sonnet 3.7. Live API paginated to limit=100.
- PathBrowser: Select button moved to sticky header (always visible).
  Current path shown compact in header with RTL ellipsis.
- files.ensureDir RPC: creates directory recursively before project creation
- files.ensureDir added to RPC schema
2026-03-25 01:05:15 +01:00
Hibryda
d8b831089a fix(electrobun): XDG dirs, sanitized errors, themed dropdowns + checkboxes
- PathBrowser: dynamic XDG shortcuts (only shows dirs that exist)
- Errors sanitized: "Directory not found" instead of raw ENOENT
- Select dropdowns: custom arrow, themed options, appearance:none
- Checkboxes: custom styled with --ctp-blue check, themed border
2026-03-22 12:40:56 +01:00
Hibryda
f71ca2e1ca fix(electrobun): PathBrowser width constrained, position relative (no full-width stretch) 2026-03-22 12:33:18 +01:00
Hibryda
41d5cc3c12 fix(electrobun): PathBrowser uses unguarded files.browse RPC (dirs only)
- files.browse: new RPC handler — unguarded directory listing, returns
  only directories (no file content access). Used by PathBrowser wizard.
- PathBrowser: uses files.browse instead of files.list (was blocked by
  guardPath "access denied: path outside allowed project directories")
- Home dir resolved via files.homeDir RPC (not process.env.HOME)

Note: GTK native dialog title/theme/sort controlled by Electrobun's
native wrapper — canChooseFiles:false should set SELECT_FOLDER action
but may need upstream fix for correct title.
2026-03-22 12:11:39 +01:00
Hibryda
46b4893d2d fix(electrobun): fix PathBrowser process.env.HOME, add dual browse buttons
- PathBrowser: resolveHome() via files.homeDir RPC (was process.env.HOME)
- ProjectWizard: two browse buttons — 📂 native dialog + 🔍 in-app browser
- In-app browser uses display toggle (rule 55), dirs-only filter
- Native dialog: Electrobun Utils.openFileDialog (GTK chooser)
- In-app browser: themed, dirs sorted first, proper breadcrumbs
2026-03-22 11:48:47 +01:00
Hibryda
45bca3b96f feat(electrobun): ProjectWizard — 3-step project creation with 5 source types
Step 1 — Source: local folder (path browser + validation), git clone,
GitHub URL, template (4 built-in), remote SSH
Step 2 — Configure: name, branch selector, worktree toggle, group, icon, shell
Step 3 — Agent: provider, model, permission mode, system prompt, auto-start

- ProjectWizard.svelte: 3-step wizard with display toggle (rule 55)
- PathBrowser.svelte: inline directory browser with breadcrumbs + shortcuts
- git-handlers.ts: git.branches + git.clone RPC handlers
- files.statEx RPC: path validation + git detection + writable check
- 39 new i18n keys, 172 total TranslationKey entries
- App.svelte: wizard overlay replaces simple add-project card
2026-03-22 11:17:05 +01:00