cua-agent 0.1.39__tar.gz → 0.1.41__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 (85) hide show
  1. {cua_agent-0.1.39 → cua_agent-0.1.41}/PKG-INFO +1 -1
  2. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/ui/gradio/app.py +14 -7
  3. {cua_agent-0.1.39 → cua_agent-0.1.41}/pyproject.toml +3 -3
  4. {cua_agent-0.1.39 → cua_agent-0.1.41}/README.md +0 -0
  5. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/__init__.py +0 -0
  6. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/core/__init__.py +0 -0
  7. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/core/agent.py +0 -0
  8. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/core/base.py +0 -0
  9. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/core/callbacks.py +0 -0
  10. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/core/experiment.py +0 -0
  11. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/core/factory.py +0 -0
  12. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/core/messages.py +0 -0
  13. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/core/provider_config.py +0 -0
  14. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/core/telemetry.py +0 -0
  15. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/core/tools/__init__.py +0 -0
  16. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/core/tools/base.py +0 -0
  17. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/core/tools/bash.py +0 -0
  18. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/core/tools/collection.py +0 -0
  19. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/core/tools/computer.py +0 -0
  20. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/core/tools/edit.py +0 -0
  21. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/core/tools/manager.py +0 -0
  22. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/core/tools.py +0 -0
  23. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/core/types.py +0 -0
  24. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/core/visualization.py +0 -0
  25. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/__init__.py +0 -0
  26. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/anthropic/__init__.py +0 -0
  27. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/anthropic/api/client.py +0 -0
  28. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/anthropic/api/logging.py +0 -0
  29. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/anthropic/api_handler.py +0 -0
  30. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/anthropic/callbacks/__init__.py +0 -0
  31. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/anthropic/callbacks/manager.py +0 -0
  32. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/anthropic/loop.py +0 -0
  33. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/anthropic/prompts.py +0 -0
  34. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/anthropic/response_handler.py +0 -0
  35. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/anthropic/tools/__init__.py +0 -0
  36. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/anthropic/tools/base.py +0 -0
  37. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/anthropic/tools/bash.py +0 -0
  38. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/anthropic/tools/collection.py +0 -0
  39. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/anthropic/tools/computer.py +0 -0
  40. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/anthropic/tools/edit.py +0 -0
  41. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/anthropic/tools/manager.py +0 -0
  42. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/anthropic/tools/run.py +0 -0
  43. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/anthropic/types.py +0 -0
  44. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/anthropic/utils.py +0 -0
  45. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/omni/__init__.py +0 -0
  46. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/omni/api_handler.py +0 -0
  47. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/omni/clients/anthropic.py +0 -0
  48. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/omni/clients/base.py +0 -0
  49. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/omni/clients/oaicompat.py +0 -0
  50. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/omni/clients/ollama.py +0 -0
  51. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/omni/clients/openai.py +0 -0
  52. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/omni/clients/utils.py +0 -0
  53. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/omni/image_utils.py +0 -0
  54. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/omni/loop.py +0 -0
  55. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/omni/parser.py +0 -0
  56. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/omni/prompts.py +0 -0
  57. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/omni/tools/__init__.py +0 -0
  58. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/omni/tools/base.py +0 -0
  59. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/omni/tools/bash.py +0 -0
  60. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/omni/tools/computer.py +0 -0
  61. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/omni/tools/manager.py +0 -0
  62. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/omni/utils.py +0 -0
  63. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/openai/__init__.py +0 -0
  64. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/openai/api_handler.py +0 -0
  65. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/openai/loop.py +0 -0
  66. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/openai/response_handler.py +0 -0
  67. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/openai/tools/__init__.py +0 -0
  68. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/openai/tools/base.py +0 -0
  69. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/openai/tools/computer.py +0 -0
  70. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/openai/tools/manager.py +0 -0
  71. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/openai/types.py +0 -0
  72. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/openai/utils.py +0 -0
  73. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/uitars/__init__.py +0 -0
  74. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/uitars/clients/base.py +0 -0
  75. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/uitars/clients/mlxvlm.py +0 -0
  76. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/uitars/clients/oaicompat.py +0 -0
  77. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/uitars/loop.py +0 -0
  78. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/uitars/prompts.py +0 -0
  79. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/uitars/tools/__init__.py +0 -0
  80. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/uitars/tools/computer.py +0 -0
  81. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/uitars/tools/manager.py +0 -0
  82. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/providers/uitars/utils.py +0 -0
  83. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/telemetry.py +0 -0
  84. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/ui/__init__.py +0 -0
  85. {cua_agent-0.1.39 → cua_agent-0.1.41}/agent/ui/gradio/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cua-agent
3
- Version: 0.1.39
3
+ Version: 0.1.41
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.10
@@ -818,6 +818,7 @@ if __name__ == "__main__":
818
818
  # Custom model fields visibility
819
819
  gr.update(visible=is_any_custom), # Custom model name always visible for any custom option
820
820
  gr.update(visible=is_custom_openai_api), # Provider base URL only for OpenAI compatible API
821
+ gr.update(visible=is_custom_openai_api), # Provider API key only for OpenAI compatible API
821
822
  # Update the hidden model_choice field
822
823
  gr.update(value=model_choice_value)
823
824
  ]
@@ -1017,12 +1018,18 @@ if __name__ == "__main__":
1017
1018
  model_string_to_analyze = model_choice_value # Use the full UI string initially
1018
1019
 
1019
1020
  try:
1020
- # Special case for UITARS - use MLXVLM provider
1021
+ # Special case for UITARS - use MLXVLM provider or OAICOMPAT for custom
1021
1022
  if agent_loop_choice == "UITARS":
1022
- provider = LLMProvider.MLXVLM
1023
- cleaned_model_name_from_func = model_string_to_analyze
1024
- agent_loop_type = AgentLoop.UITARS
1025
- print(f"Using MLXVLM provider for UITARS model: {model_string_to_analyze}")
1023
+ if is_custom_openai_api:
1024
+ provider = LLMProvider.OAICOMPAT
1025
+ cleaned_model_name_from_func = custom_model_value
1026
+ agent_loop_type = AgentLoop.UITARS
1027
+ print(f"Using OAICOMPAT provider for custom UITARS model: {custom_model_value}")
1028
+ else:
1029
+ provider = LLMProvider.MLXVLM
1030
+ cleaned_model_name_from_func = model_string_to_analyze
1031
+ agent_loop_type = AgentLoop.UITARS
1032
+ print(f"Using MLXVLM provider for UITARS model: {model_string_to_analyze}")
1026
1033
  # Special case for Ollama custom model
1027
1034
  elif is_custom_ollama and agent_loop_choice == "OMNI":
1028
1035
  provider = LLMProvider.OLLAMA
@@ -1045,8 +1052,8 @@ if __name__ == "__main__":
1045
1052
  else cleaned_model_name_from_func
1046
1053
  )
1047
1054
 
1048
- # Determine if OAICOMPAT should be used (only for OpenAI compatible API custom model)
1049
- is_oaicompat = is_custom_openai_api and agent_loop_choice != "UITARS"
1055
+ # Determine if OAICOMPAT should be used (for OpenAI compatible API custom model)
1056
+ is_oaicompat = is_custom_openai_api
1050
1057
 
1051
1058
  # Get API key based on provider determined by get_provider_and_model
1052
1059
  if is_oaicompat and custom_api_key:
@@ -6,7 +6,7 @@ build-backend = "pdm.backend"
6
6
 
7
7
  [project]
8
8
  name = "cua-agent"
9
- version = "0.1.39"
9
+ version = "0.1.41"
10
10
  description = "CUA (Computer Use) Agent for AI-driven computer interaction"
11
11
  readme = "README.md"
12
12
  authors = [
@@ -109,7 +109,7 @@ target-version = [
109
109
 
110
110
  [tool.ruff]
111
111
  line-length = 100
112
- target-version = "0.1.39"
112
+ target-version = "0.1.41"
113
113
  select = [
114
114
  "E",
115
115
  "F",
@@ -123,7 +123,7 @@ docstring-code-format = true
123
123
 
124
124
  [tool.mypy]
125
125
  strict = true
126
- python_version = "0.1.39"
126
+ python_version = "0.1.41"
127
127
  ignore_missing_imports = true
128
128
  disallow_untyped_defs = true
129
129
  check_untyped_defs = true
File without changes
File without changes