cua-agent 0.2.3__tar.gz → 0.2.5__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.
- {cua_agent-0.2.3 → cua_agent-0.2.5}/PKG-INFO +2 -2
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/ui/gradio/app.py +7 -1
- {cua_agent-0.2.3 → cua_agent-0.2.5}/pyproject.toml +4 -4
- {cua_agent-0.2.3 → cua_agent-0.2.5}/README.md +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/__init__.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/core/__init__.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/core/agent.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/core/base.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/core/callbacks.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/core/experiment.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/core/factory.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/core/messages.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/core/provider_config.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/core/telemetry.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/core/tools/__init__.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/core/tools/base.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/core/tools/bash.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/core/tools/collection.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/core/tools/computer.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/core/tools/edit.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/core/tools/manager.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/core/tools.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/core/types.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/core/visualization.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/__init__.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/anthropic/__init__.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/anthropic/api/client.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/anthropic/api/logging.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/anthropic/api_handler.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/anthropic/callbacks/__init__.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/anthropic/callbacks/manager.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/anthropic/loop.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/anthropic/prompts.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/anthropic/response_handler.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/anthropic/tools/__init__.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/anthropic/tools/base.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/anthropic/tools/bash.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/anthropic/tools/collection.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/anthropic/tools/computer.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/anthropic/tools/edit.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/anthropic/tools/manager.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/anthropic/tools/run.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/anthropic/types.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/anthropic/utils.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/omni/__init__.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/omni/api_handler.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/omni/clients/anthropic.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/omni/clients/base.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/omni/clients/oaicompat.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/omni/clients/ollama.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/omni/clients/openai.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/omni/clients/utils.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/omni/image_utils.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/omni/loop.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/omni/parser.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/omni/prompts.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/omni/tools/__init__.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/omni/tools/base.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/omni/tools/bash.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/omni/tools/computer.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/omni/tools/manager.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/omni/utils.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/openai/__init__.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/openai/api_handler.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/openai/loop.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/openai/response_handler.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/openai/tools/__init__.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/openai/tools/base.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/openai/tools/computer.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/openai/tools/manager.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/openai/types.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/openai/utils.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/uitars/__init__.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/uitars/clients/base.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/uitars/clients/mlxvlm.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/uitars/clients/oaicompat.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/uitars/loop.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/uitars/prompts.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/uitars/tools/__init__.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/uitars/tools/computer.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/uitars/tools/manager.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/providers/uitars/utils.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/telemetry.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/agent/ui/__init__.py +0 -0
- {cua_agent-0.2.3 → cua_agent-0.2.5}/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.2.
|
|
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
|
|
@@ -12,7 +12,7 @@ Requires-Dist: typing-extensions<5.0.0,>=4.12.2
|
|
|
12
12
|
Requires-Dist: pydantic<3.0.0,>=2.6.4
|
|
13
13
|
Requires-Dist: rich<14.0.0,>=13.7.1
|
|
14
14
|
Requires-Dist: python-dotenv<2.0.0,>=1.0.1
|
|
15
|
-
Requires-Dist: cua-computer<0.
|
|
15
|
+
Requires-Dist: cua-computer<0.3.0,>=0.2.0
|
|
16
16
|
Requires-Dist: cua-core<0.2.0,>=0.1.0
|
|
17
17
|
Requires-Dist: certifi>=2024.2.2
|
|
18
18
|
Provides-Extra: anthropic
|
|
@@ -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 = {
|
|
@@ -6,7 +6,7 @@ build-backend = "pdm.backend"
|
|
|
6
6
|
|
|
7
7
|
[project]
|
|
8
8
|
name = "cua-agent"
|
|
9
|
-
version = "0.2.
|
|
9
|
+
version = "0.2.5"
|
|
10
10
|
description = "CUA (Computer Use) Agent for AI-driven computer interaction"
|
|
11
11
|
readme = "README.md"
|
|
12
12
|
authors = [
|
|
@@ -21,7 +21,7 @@ dependencies = [
|
|
|
21
21
|
"pydantic>=2.6.4,<3.0.0",
|
|
22
22
|
"rich>=13.7.1,<14.0.0",
|
|
23
23
|
"python-dotenv>=1.0.1,<2.0.0",
|
|
24
|
-
"cua-computer>=0.
|
|
24
|
+
"cua-computer>=0.2.0,<0.3.0",
|
|
25
25
|
"cua-core>=0.1.0,<0.2.0",
|
|
26
26
|
"certifi>=2024.2.2",
|
|
27
27
|
]
|
|
@@ -109,7 +109,7 @@ target-version = [
|
|
|
109
109
|
|
|
110
110
|
[tool.ruff]
|
|
111
111
|
line-length = 100
|
|
112
|
-
target-version = "0.2.
|
|
112
|
+
target-version = "0.2.5"
|
|
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.2.
|
|
126
|
+
python_version = "0.2.5"
|
|
127
127
|
ignore_missing_imports = true
|
|
128
128
|
disallow_untyped_defs = true
|
|
129
129
|
check_untyped_defs = true
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|