cua-agent 0.4.13__tar.gz → 0.4.14__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 (49) hide show
  1. {cua_agent-0.4.13 → cua_agent-0.4.14}/PKG-INFO +2 -2
  2. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/loops/uitars.py +9 -1
  3. {cua_agent-0.4.13 → cua_agent-0.4.14}/pyproject.toml +2 -2
  4. {cua_agent-0.4.13 → cua_agent-0.4.14}/README.md +0 -0
  5. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/__init__.py +0 -0
  6. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/__main__.py +0 -0
  7. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/adapters/__init__.py +0 -0
  8. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/adapters/huggingfacelocal_adapter.py +0 -0
  9. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/adapters/human_adapter.py +0 -0
  10. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/agent.py +0 -0
  11. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/callbacks/__init__.py +0 -0
  12. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/callbacks/base.py +0 -0
  13. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/callbacks/budget_manager.py +0 -0
  14. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/callbacks/image_retention.py +0 -0
  15. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/callbacks/logging.py +0 -0
  16. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/callbacks/pii_anonymization.py +0 -0
  17. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/callbacks/telemetry.py +0 -0
  18. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/callbacks/trajectory_saver.py +0 -0
  19. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/cli.py +0 -0
  20. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/computers/__init__.py +0 -0
  21. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/computers/base.py +0 -0
  22. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/computers/cua.py +0 -0
  23. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/computers/custom.py +0 -0
  24. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/decorators.py +0 -0
  25. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/human_tool/__init__.py +0 -0
  26. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/human_tool/__main__.py +0 -0
  27. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/human_tool/server.py +0 -0
  28. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/human_tool/ui.py +0 -0
  29. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/integrations/hud/__init__.py +0 -0
  30. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/integrations/hud/adapter.py +0 -0
  31. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/integrations/hud/agent.py +0 -0
  32. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/integrations/hud/computer_handler.py +0 -0
  33. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/loops/__init__.py +0 -0
  34. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/loops/anthropic.py +0 -0
  35. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/loops/base.py +0 -0
  36. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/loops/composed_grounded.py +0 -0
  37. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/loops/glm45v.py +0 -0
  38. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/loops/gta1.py +0 -0
  39. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/loops/model_types.csv +0 -0
  40. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/loops/omniparser.py +0 -0
  41. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/loops/openai.py +0 -0
  42. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/responses.py +0 -0
  43. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/telemetry.py +0 -0
  44. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/types.py +0 -0
  45. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/ui/__init__.py +0 -0
  46. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/ui/__main__.py +0 -0
  47. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/ui/gradio/__init__.py +0 -0
  48. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/ui/gradio/app.py +0 -0
  49. {cua_agent-0.4.13 → cua_agent-0.4.14}/agent/ui/gradio/ui_components.py +0 -0
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cua-agent
3
- Version: 0.4.13
3
+ Version: 0.4.14
4
4
  Summary: CUA (Computer Use) Agent for AI-driven computer interaction
5
5
  Author-Email: TryCua <gh@trycua.com>
6
- Requires-Python: >=3.11
6
+ Requires-Python: >=3.12
7
7
  Requires-Dist: httpx>=0.27.0
8
8
  Requires-Dist: aiohttp>=3.9.3
9
9
  Requires-Dist: asyncio
@@ -782,11 +782,19 @@ class UITARSConfig:
782
782
  # Extract response content
783
783
  response_content = response.choices[0].message.content.strip() # type: ignore
784
784
 
785
+ print(response_content)
786
+
785
787
  # Parse the response to extract click coordinates
786
- # Look for click action with coordinates
788
+ # Look for click action with coordinates (with special tokens)
787
789
  click_pattern = r"click\(point='<\|box_start\|>\((\d+),(\d+)\)<\|box_end\|>'\)"
788
790
  match = re.search(click_pattern, response_content)
789
791
 
792
+ # Fallback: Look for simpler format without special tokens
793
+ if not match:
794
+ # Pattern for: click(start_box='(x,y)') or click(point='(x,y)')
795
+ fallback_pattern = r"click\((?:start_box|point)='\((\d+),(\d+)\)'\)"
796
+ match = re.search(fallback_pattern, response_content)
797
+
790
798
  if match:
791
799
  x, y = int(match.group(1)), int(match.group(2))
792
800
  # Scale coordinates back to original image dimensions
@@ -6,7 +6,7 @@ build-backend = "pdm.backend"
6
6
 
7
7
  [project]
8
8
  name = "cua-agent"
9
- version = "0.4.13"
9
+ version = "0.4.14"
10
10
  description = "CUA (Computer Use) Agent for AI-driven computer interaction"
11
11
  readme = "README.md"
12
12
  authors = [
@@ -26,7 +26,7 @@ dependencies = [
26
26
  "certifi>=2024.2.2",
27
27
  "litellm>=1.74.12",
28
28
  ]
29
- requires-python = ">=3.11"
29
+ requires-python = ">=3.12"
30
30
 
31
31
  [project.optional-dependencies]
32
32
  openai = []
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes