Lutra/crates
danny f1976c7d67 M1.3: engine workspace, file and buffer commands, event stream
State holds the open project (VFS project, watcher, watched directories)
and versioned buffers. New commands: project.open/close/children,
file.open/save/saveAll, buffer.get/edit/close. buffer.edit takes UTF-16
change sets based on a version and fails with the new stale_version code;
closing dirty buffers or projects without force fails with
unsaved_changes. Commands queue events (projectOpened, treeChanged,
bufferChanged, dirtyChanged, fileChangedOnDisk, ...) that the engine
returns in Outcome.events; Engine::pump_vfs maps changes on disk to
events and reloads clean buffers. project.children watches listed
directories, capped at 256 native / 32 polling, least recently listed
dropped first.

Control channel: events.subscribe streams {"event": ...} lines, with
bounded per-subscriber queues (lutra_control::Subscribers) and method docs
in methods.rs. testkit's EngineBackend and the desktop Host implement the
new Backend::subscribe. Verified with 14 engine integration tests, a TCP
events test and the running app over the control channel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 20:24:44 +02:00
..
control M1.3: engine workspace, file and buffer commands, event stream 2026-10-14 20:24:44 +02:00
engine M1.3: engine workspace, file and buffer commands, event stream 2026-10-14 20:24:44 +02:00
index M0.1: Cargo workspace with layered crates 2026-10-13 20:24:06 +02:00
lsp M0.1: Cargo workspace with layered crates 2026-10-13 20:24:06 +02:00
mcp M0.1: Cargo workspace with layered crates 2026-10-13 20:24:06 +02:00
search M0.1: Cargo workspace with layered crates 2026-10-13 20:24:06 +02:00
syntax M0.1: Cargo workspace with layered crates 2026-10-13 20:24:06 +02:00
terminal M0.1: Cargo workspace with layered crates 2026-10-13 20:24:06 +02:00
testkit M1.3: engine workspace, file and buffer commands, event stream 2026-10-14 20:24:44 +02:00
text M1.1: text buffer with UTF-16 positions, edit batches and line endings 2026-10-14 19:20:18 +02:00
vfs M1.2: native file watching via notify 2026-10-14 19:43:15 +02:00