cua-agent 0.2.4__py3-none-any.whl → 0.2.5__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/ui/gradio/app.py CHANGED
@@ -445,7 +445,8 @@ def create_gradio_ui(
445
445
  # Check for API keys
446
446
  openai_api_key = os.environ.get("OPENAI_API_KEY", "")
447
447
  anthropic_api_key = os.environ.get("ANTHROPIC_API_KEY", "")
448
-
448
+ cua_api_key = os.environ.get("CUA_API_KEY", "")
449
+
449
450
  # Always show models regardless of API key availability
450
451
  openai_models = ["OpenAI: Computer-Use Preview"]
451
452
  anthropic_models = [
@@ -463,9 +464,11 @@ def create_gradio_ui(
463
464
  # Check if API keys are available
464
465
  has_openai_key = bool(openai_api_key)
465
466
  has_anthropic_key = bool(anthropic_api_key)
467
+ has_cua_key = bool(cua_api_key)
466
468
 
467
469
  print("has_openai_key", has_openai_key)
468
470
  print("has_anthropic_key", has_anthropic_key)
471
+ print("has_cua_key", has_cua_key)
469
472
 
470
473
  # Get Ollama models for OMNI
471
474
  ollama_models = get_ollama_models()
@@ -747,6 +750,7 @@ if __name__ == "__main__":
747
750
  value="",
748
751
  type="password",
749
752
  info="Required for cloud provider",
753
+ visible=(not has_cua_key)
750
754
  )
751
755
 
752
756
  with gr.Accordion("Agent Configuration", open=True):
@@ -1171,6 +1175,8 @@ if __name__ == "__main__":
1171
1175
  else:
1172
1176
  # For Ollama or default OAICOMPAT (without custom key), no key needed/expected
1173
1177
  api_key = ""
1178
+
1179
+ cua_cloud_api_key = cua_cloud_api_key or os.environ.get("CUA_API_KEY", "")
1174
1180
 
1175
1181
  # --- Save Settings Before Running Agent ---
1176
1182
  current_settings = {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cua-agent
3
- Version: 0.2.4
3
+ Version: 0.2.5
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
@@ -79,8 +79,8 @@ agent/providers/uitars/utils.py,sha256=493STTEEJcVhVbQgR0e8rNTI1DjkxUx8IgIv3wkJ1
79
79
  agent/telemetry.py,sha256=pVGxbj0ewnvq4EGj28CydN4a1iOfvZR_XKL3vIOqhOM,390
80
80
  agent/ui/__init__.py,sha256=ohhxJLBin6k1hl5sKcmBST8mgh23WXgAXz3pN4f470E,45
81
81
  agent/ui/gradio/__init__.py,sha256=ANKZhv1HqsLheWbLVBlyRQ7Q5qGeXuPi5jDs8vu-ZMo,579
82
- agent/ui/gradio/app.py,sha256=c6K5Pb-iP4N6PuXCkrkbB6g6FFTOjAcYAz7pj-fbBlY,69915
83
- cua_agent-0.2.4.dist-info/METADATA,sha256=ILpJ1gkBlREmjY7AqkxI5ODnSRejKL08vciQx54etw8,12688
84
- cua_agent-0.2.4.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
85
- cua_agent-0.2.4.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
86
- cua_agent-0.2.4.dist-info/RECORD,,
82
+ agent/ui/gradio/app.py,sha256=zwc-boCJshWRE3vwV95NjqVv3mSMzRLjFeiMlfmyPbQ,70223
83
+ cua_agent-0.2.5.dist-info/METADATA,sha256=WAh_WUblNwCBX0qNkEB3hoAQB3OH9c1JMs_pBL9DmXo,12688
84
+ cua_agent-0.2.5.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
85
+ cua_agent-0.2.5.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
86
+ cua_agent-0.2.5.dist-info/RECORD,,