Package-level declarations
Types
Очередь команд для последовательного выполнения операций с UI. Гарантирует, что команды не будут конкурировать друг с другом. WebSocket команды имеют приоритет над операциями получения дерева. Команды сами управляют переключением потоков внутри себя.
Универсальный fallback: UI считается успокоившимся, когда fingerprint дерева стабилен два замера подряд. Используется там, где нет доступа к нативному idle-механизму платформы (см. design post-action-ui-tree, Open Questions).
Платформы без idle-детекта (iOS): дерево снимается сразу, settled = true.
Типы команд, которые могут быть выполнены через очередь
Интерфейс WebSocket клиента для передачи UI данных на recorder server
Ожидание «успокоения» UI после мутирующей команды (capability post-action-tree-delivery).
Builder for constructing ViewUiElement tree from Android View hierarchy
Functions
Compose Test has no public hasRole matcher, so derived role locators (ai.assertum.recordercore.models.locator.ComposeLocator.RoleLocator) cannot use a built-in. This helper builds the matcher from the Role semantics property and is imported both by generated ScreenObject code and the runtime ComposeOperationExecutor.
Single-threaded desktop recorder session. Unlike CMPRecorderWebSocketClient (which streams from a background thread), this runs the main loop on the caller's thread — the Compose test thread of runComposeUiTest { }. Tree reads, screenshot capture and command execution (Ultron actions) all happen on the test thread, where Compose actions actually complete; only websocket I/O is moved to a background coroutine via lock-free queues.
Converts UiAutomatorLocator (serializable, KMP) to Android BySelector for execution.