Architecture
Svelte UI and stores
| typed Tauri commands and events
Rust application shell
| PlatformAdapter trait
X11 adapter on Linux
The Svelte layer owns user interaction: tab routing, catalog search, pointer drag state, zone assignments, layout selection, and temporary slider state. src/lib/commands.ts is the narrow IPC wrapper.
The Rust shell owns bootstrap, persistence, diagnostics, eligibility, geometry, and orchestration. ArrangeOrchestrator validates the complete request before calling move_resize_window. LayoutEngine computes rectangles from a screen work area and layout values.
Platform adapters must report capabilities honestly. The Wayland adapter demonstrates the required read-only contract: enumeration may work while movement returns an error. New platform behavior must be backed by adapter code, shared types, tests, and release artifacts before it is documented.