cua-agent 0.4.8__py3-none-any.whl → 0.4.9__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of cua-agent might be problematic. Click here for more details.

agent/computer_handler.py CHANGED
@@ -3,7 +3,7 @@ Computer handler implementation for OpenAI computer-use-preview protocol.
3
3
  """
4
4
 
5
5
  import base64
6
- from typing import Dict, List, Any, Literal
6
+ from typing import Dict, List, Any, Literal, Union
7
7
  from .types import Computer
8
8
 
9
9
 
@@ -61,8 +61,10 @@ class OpenAIComputerHandler:
61
61
  """Move cursor to coordinates."""
62
62
  await self.interface.move_cursor(x, y)
63
63
 
64
- async def keypress(self, keys: List[str]) -> None:
64
+ async def keypress(self, keys: Union[List[str], str]) -> None:
65
65
  """Press key combination."""
66
+ if isinstance(keys, str):
67
+ keys = [keys]
66
68
  if len(keys) == 1:
67
69
  await self.interface.press_key(keys[0])
68
70
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cua-agent
3
- Version: 0.4.8
3
+ Version: 0.4.9
4
4
  Summary: CUA (Computer Use) Agent for AI-driven computer interaction
5
5
  Author-Email: TryCua <gh@trycua.com>
6
6
  Requires-Python: >=3.11
@@ -12,7 +12,7 @@ agent/callbacks/pii_anonymization.py,sha256=NEkUTUjQBi82nqus7kT-1E4RaeQ2hQrY7YCn
12
12
  agent/callbacks/telemetry.py,sha256=PU7pkK7W1v1xjDN-9gA30lGvn4-WhqK3BPHGW3HpTOc,7497
13
13
  agent/callbacks/trajectory_saver.py,sha256=POE8aPT-MBzfW873wr6C7iiVUHtp483KwvLPxC1S3EY,11626
14
14
  agent/cli.py,sha256=LDKjahBcZLFjUSq3c4MYELJ3dxJ0n5lgY2WKTC3rXQY,12375
15
- agent/computer_handler.py,sha256=rzPlg62HYgAOgl0GMWlTgKOwO1S1cYXXhIzgyjfgHac,4033
15
+ agent/computer_handler.py,sha256=WBE78movl9ZHKWl-63GDoVSdYt71q4hUwQ6MvUfa140,4112
16
16
  agent/decorators.py,sha256=n8VvMsififWkmuk75Q7HIpo0xAA2yAeQ6J-OOiwbAKc,1836
17
17
  agent/loops/__init__.py,sha256=AQ8eLgAo9ZiSaRC8n9nMOudF2IWgIKd8130uWwQlIJg,297
18
18
  agent/loops/anthropic.py,sha256=joz7ibK6B4rTR3ue8a8rRcY0K0FIAv0TwcH2BL46Nmg,62557
@@ -31,7 +31,7 @@ agent/ui/__main__.py,sha256=vudWXYvGM0aNT5aZ94HPtGW8YXOZ4cLXepHyhUM_k1g,73
31
31
  agent/ui/gradio/__init__.py,sha256=yv4Mrfo-Sj2U5sVn_UJHAuwYCezo-5O4ItR2C9jzNko,145
32
32
  agent/ui/gradio/app.py,sha256=9UOPwuwspLrnHGY91zdzuRqkMH4cmwOBH-f-BC0gVC4,9077
33
33
  agent/ui/gradio/ui_components.py,sha256=hVMGZxAEq1LBHOqKj-RbDXJsj1j0Qw5dOV0ecWIHxmc,35397
34
- cua_agent-0.4.8.dist-info/METADATA,sha256=2EFs7ONEjcJ11pYh8D0_DLb6aU4dVWBiUIneS_VzXnY,12061
35
- cua_agent-0.4.8.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
36
- cua_agent-0.4.8.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
37
- cua_agent-0.4.8.dist-info/RECORD,,
34
+ cua_agent-0.4.9.dist-info/METADATA,sha256=lTkzRc98XnFsPDzmDZ7WAwfU3BNM_sJljP5R8yAV5yw,12061
35
+ cua_agent-0.4.9.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
36
+ cua_agent-0.4.9.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
37
+ cua_agent-0.4.9.dist-info/RECORD,,