goose
goose copied to clipboard
feat: add io toolkit
This pull request introduces the new IO toolkit to control mouse and keyboard inputs, along with the necessary dependencies and tests. The most important changes include adding the pyautogui dependency, implementing the IO toolkit class, and creating tests for the new functionality.
New Toolkit Implementation:
- Added
pyautoguidependency topyproject.tomlto support mouse and keyboard control. (pyproject.toml) - Implemented the
IOclass insrc/goose/toolkit/io.pyto provide tools for moving the mouse, clicking the mouse, and typing text. (src/goose/toolkit/io.py)
Configuration Updates:
- Added the
ioentry point for the newIOtoolkit inpyproject.toml. (pyproject.toml)
Testing:
- Created unit tests for the
IOtoolkit methods intests/toolkit/test_io.pyto ensure proper functionality. (tests/toolkit/test_io.py)
oh this is wild I will be trying this!
@Kvadratni this is actuallyu pretty awesome - if you can solve the co-ordinates and calculation stuff (and perhaps some of the prompts of when it is invoked) - do you have any testing tips?