mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-20 01:21:48 +01:00
Each kept resolution holds the key of what it read: the state's revision, the gate's key and answer, a shared generation (keymap and catalog, scope parents, instances and their liveness, modal facts) and, when read, the focus generation, the focused stop's edits and a layer's or menu's vantage. A reader whose key holds gets the kept Arc<ResolvedCommand>; the wake at the start of a pass walks only when an input moved. CommandGate is a fn plus props, asked once per command per key. App-scope states come from a held Tracked<CommandStates>. resolve and resolve_command return Arc<ResolvedCommand>. Under testing, every 100th pass compares every kept resolution with a full one; count_resolve counts new, repeated and checked resolutions.