Files
loki/desktop/.gitignore
T
Mao NakamotoandClaude Opus 4.7 a4440fe7b1 feat(desktop): IPC for local CLI detection — surface zellij + agent prerequisites
Adds `window.fleetRunner.getInstalledCLIs()` so the web UI (when running
inside Fleet Runner) can render a clear "Install Claude" CTA instead of
silently dispatching to a missing binary — the prerequisite gap a new user
would hit on first launch.

Pieces:

1. desktop/src/main/index.ts: new `get-installed-clis` IPC handler.
   Shell-exec'd `command -v <name>` against each of zellij, claude, codex,
   grok, gemini, cursor. Result cached for the process lifetime (relaunch
   to re-scan; mid-session installs are uncommon and don't need to be
   reflected without a restart). Inherits PATH via shell -c so the scan
   matches what `injectIntoTab` would see at dispatch time.

2. desktop/src/preload/index.ts: exposes `getInstalledCLIs` on the
   `window.fleetRunner` bridge.

3. src/components/desktop/types.ts: adds the method to the canonical
   FleetRunnerBridge type (optional, since older shipped builds won't
   have it).

Web-side consumer (badge / banner in /control) will land in a follow-up
commit. Keeping the IPC change focused so the desktop release can ship
the prerequisite-scan capability even if the web UI for it isn't
deployed yet.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-05 10:01:57 +02:00

2 lines
8 B
Plaintext