cua-agent 0.4.8__tar.gz → 0.4.10__tar.gz

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.

Files changed (36) hide show
  1. {cua_agent-0.4.8 → cua_agent-0.4.10}/PKG-INFO +1 -1
  2. {cua_agent-0.4.8 → cua_agent-0.4.10}/agent/computer_handler.py +4 -2
  3. {cua_agent-0.4.8 → cua_agent-0.4.10}/pyproject.toml +1 -1
  4. {cua_agent-0.4.8 → cua_agent-0.4.10}/README.md +0 -0
  5. {cua_agent-0.4.8 → cua_agent-0.4.10}/agent/__init__.py +0 -0
  6. {cua_agent-0.4.8 → cua_agent-0.4.10}/agent/__main__.py +0 -0
  7. {cua_agent-0.4.8 → cua_agent-0.4.10}/agent/adapters/__init__.py +0 -0
  8. {cua_agent-0.4.8 → cua_agent-0.4.10}/agent/adapters/huggingfacelocal_adapter.py +0 -0
  9. {cua_agent-0.4.8 → cua_agent-0.4.10}/agent/agent.py +0 -0
  10. {cua_agent-0.4.8 → cua_agent-0.4.10}/agent/callbacks/__init__.py +0 -0
  11. {cua_agent-0.4.8 → cua_agent-0.4.10}/agent/callbacks/base.py +0 -0
  12. {cua_agent-0.4.8 → cua_agent-0.4.10}/agent/callbacks/budget_manager.py +0 -0
  13. {cua_agent-0.4.8 → cua_agent-0.4.10}/agent/callbacks/image_retention.py +0 -0
  14. {cua_agent-0.4.8 → cua_agent-0.4.10}/agent/callbacks/logging.py +0 -0
  15. {cua_agent-0.4.8 → cua_agent-0.4.10}/agent/callbacks/pii_anonymization.py +0 -0
  16. {cua_agent-0.4.8 → cua_agent-0.4.10}/agent/callbacks/telemetry.py +0 -0
  17. {cua_agent-0.4.8 → cua_agent-0.4.10}/agent/callbacks/trajectory_saver.py +0 -0
  18. {cua_agent-0.4.8 → cua_agent-0.4.10}/agent/cli.py +0 -0
  19. {cua_agent-0.4.8 → cua_agent-0.4.10}/agent/decorators.py +0 -0
  20. {cua_agent-0.4.8 → cua_agent-0.4.10}/agent/loops/__init__.py +0 -0
  21. {cua_agent-0.4.8 → cua_agent-0.4.10}/agent/loops/anthropic.py +0 -0
  22. {cua_agent-0.4.8 → cua_agent-0.4.10}/agent/loops/base.py +0 -0
  23. {cua_agent-0.4.8 → cua_agent-0.4.10}/agent/loops/composed_grounded.py +0 -0
  24. {cua_agent-0.4.8 → cua_agent-0.4.10}/agent/loops/gta1.py +0 -0
  25. {cua_agent-0.4.8 → cua_agent-0.4.10}/agent/loops/model_types.csv +0 -0
  26. {cua_agent-0.4.8 → cua_agent-0.4.10}/agent/loops/omniparser.py +0 -0
  27. {cua_agent-0.4.8 → cua_agent-0.4.10}/agent/loops/openai.py +0 -0
  28. {cua_agent-0.4.8 → cua_agent-0.4.10}/agent/loops/uitars.py +0 -0
  29. {cua_agent-0.4.8 → cua_agent-0.4.10}/agent/responses.py +0 -0
  30. {cua_agent-0.4.8 → cua_agent-0.4.10}/agent/telemetry.py +0 -0
  31. {cua_agent-0.4.8 → cua_agent-0.4.10}/agent/types.py +0 -0
  32. {cua_agent-0.4.8 → cua_agent-0.4.10}/agent/ui/__init__.py +0 -0
  33. {cua_agent-0.4.8 → cua_agent-0.4.10}/agent/ui/__main__.py +0 -0
  34. {cua_agent-0.4.8 → cua_agent-0.4.10}/agent/ui/gradio/__init__.py +0 -0
  35. {cua_agent-0.4.8 → cua_agent-0.4.10}/agent/ui/gradio/app.py +0 -0
  36. {cua_agent-0.4.8 → cua_agent-0.4.10}/agent/ui/gradio/ui_components.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cua-agent
3
- Version: 0.4.8
3
+ Version: 0.4.10
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
@@ -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.replace("-", "+").split("+")
66
68
  if len(keys) == 1:
67
69
  await self.interface.press_key(keys[0])
68
70
  else:
@@ -6,7 +6,7 @@ build-backend = "pdm.backend"
6
6
 
7
7
  [project]
8
8
  name = "cua-agent"
9
- version = "0.4.8"
9
+ version = "0.4.10"
10
10
  description = "CUA (Computer Use) Agent for AI-driven computer interaction"
11
11
  readme = "README.md"
12
12
  authors = [
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes