feat: add GetFile, GetFileList, ClearVirtualDisplays agent OS commands #277
feat: add GetFile, GetFileList, ClearVirtualDisplays agent OS commands #277mlikasam-askui wants to merge 7 commits into
Conversation
Wire up three new commands on AskUiControllerClient via _send_command: - get_file_list(path): returns the list of file paths at the given directory on the device under automation. - get_file(path): decodes the base64 payload returned by the controller and dispatches to Image.Image when the bytes parse as an image, or to str when they decode cleanly as UTF-8 text. Anything else raises a DesktopAgentOsError, matching the server contract that always base64-encodes the raw file bytes. - clear_virtual_displays(): removes all virtual displays, leaving only real ones active.
|
What happens if I have the current controller on mac and the agent tries to call the read_file, I assume it will crash? should we need to update the docs and add a hint, that e.g. the read_file operation is only available on windows currently? |
It won’t crash. The agent will receive an error indicating that the currently used control does not support the requested command. |
Jira: SOLENG-363, SOLENG-362