Lutra/docs/roadmap.md
danny dd98636de4 M1.4: desktop bridge: engine events to the window, folder picker, live project tree
The desktop host publishes every engine event, from commands and from a
pump thread that calls Engine::pump_vfs every 100 ms, to control channel
subscribers and to the window as the Tauri event engine://event, in engine
order. ui/src/ipc.ts gets a typed onEngineEvent; its first subscription
calls engine_ready, and the host replays the current project and buffers,
so a project opened from the command line (lutra-desktop --control PORT
PATH) reaches the UI. project.openDialog returns Effect::PickFolder; the
host shows the native folder picker (tauri-plugin-dialog, licence checked)
and opens the choice, one picker at a time, cancel is not an error.
Capabilities shrink to event listen/unlisten.

Contract fix: the M1.5 project UI assumed shapes the engine does not use.
engineEvents.ts now translates engine events ({kind: projectOpened, ...})
and project.children results ({dir, entries, truncated}) into the UI types,
keeping role and truncated; the store maps listings through
toTreeEntries() and the project tests use the real engine shapes.

Verified in the running app on Windows 11: tree of a project given on the
command line, expanding src, a file created on disk appearing live, the
folder picker opening one dialog and opening the chosen folder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 06:41:49 +02:00

2 KiB
Raw Blame History

Milestones

Status: M0 done, M1 in progress · Last updated: 2026-10-15

Hours are agent wall-clock hours for one agent; M0 is measured, the rest estimated.

Milestone Goal State Hours
M0 Foundation: workspace, lints, quality gate, command registry, control channel, empty window done 2026-10-14 (CI workflow written, not yet run: no remote) ~2 (measured)
M1 Editor and project: open folder, tree, tabs, editor, save, recovery, palette, settings, themes in progress (M1.1 text, M1.2 VFS, M1.5 tree UI, M1.3 engine workspace, M1.4 desktop bridge) ~60
M2 Syntax and search: highlighting, structure, find in files, go to file/class/symbol not started ~50
M3 LSP, terminal, CLI: completion, diagnostics, go to definition, hover, rename; terminal; lutra CLI and MCP — MVP not started ~80
M4 Git: status, diff, commit, branches, log, blame, conflicts not started ~150
M5 Debugger (Xdebug via DAP), PHPUnit/Pest runner, Composer, run configurations not started ~300
M6 Own indexer and inspections; Symfony, Laravel, Shopware, WordPress support not started ~1,100

Alpha gate

Alpha is reached when these six core workflows work end to end on macOS, Windows and Linux, with save and reopen:

  1. Open a project, browse and edit files, save, recover after a crash.
  2. Navigate: go to file, class, symbol and definition; find in files.
  3. Write code with completion and diagnostics.
  4. Run commands in the integrated terminal.
  5. Commit, diff and switch branches with Git.
  6. Drive all of the above from the CLI, the control channel and MCP.

By the estimates above the alpha gate needs M1–M4 plus cross-platform verification, about 350 h.

Revision history

Date Change Summary
2026-10-15 minor M1.4 desktop bridge
2026-10-14 minor M1 in progress
2026-10-14 minor M0 done; hours per milestone
2026-10-13 major Initial milestones