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
This commit is contained in:
Hibryda 2026-03-25 01:05:15 +01:00
parent 162b5417e4
commit a4d180d382
6 changed files with 77 additions and 12 deletions

View file

@ -146,6 +146,10 @@ export type PtyRPCRequests = {
error?: string;
};
};
"files.ensureDir": {
params: { path: string };
response: { ok: boolean; path?: string; error?: string };
};
/** Unguarded directory listing for PathBrowser (dirs only, no file content) */
"files.browse": {
params: { path: string };