cua-computer 0.3.3__tar.gz → 0.3.4__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.
Files changed (36) hide show
  1. {cua_computer-0.3.3 → cua_computer-0.3.4}/PKG-INFO +1 -1
  2. {cua_computer-0.3.3 → cua_computer-0.3.4}/computer/interface/generic.py +2 -2
  3. {cua_computer-0.3.3 → cua_computer-0.3.4}/pyproject.toml +3 -3
  4. {cua_computer-0.3.3 → cua_computer-0.3.4}/README.md +0 -0
  5. {cua_computer-0.3.3 → cua_computer-0.3.4}/computer/__init__.py +0 -0
  6. {cua_computer-0.3.3 → cua_computer-0.3.4}/computer/computer.py +0 -0
  7. {cua_computer-0.3.3 → cua_computer-0.3.4}/computer/diorama_computer.py +0 -0
  8. {cua_computer-0.3.3 → cua_computer-0.3.4}/computer/helpers.py +0 -0
  9. {cua_computer-0.3.3 → cua_computer-0.3.4}/computer/interface/__init__.py +0 -0
  10. {cua_computer-0.3.3 → cua_computer-0.3.4}/computer/interface/base.py +0 -0
  11. {cua_computer-0.3.3 → cua_computer-0.3.4}/computer/interface/factory.py +0 -0
  12. {cua_computer-0.3.3 → cua_computer-0.3.4}/computer/interface/linux.py +0 -0
  13. {cua_computer-0.3.3 → cua_computer-0.3.4}/computer/interface/macos.py +0 -0
  14. {cua_computer-0.3.3 → cua_computer-0.3.4}/computer/interface/models.py +0 -0
  15. {cua_computer-0.3.3 → cua_computer-0.3.4}/computer/interface/windows.py +0 -0
  16. {cua_computer-0.3.3 → cua_computer-0.3.4}/computer/logger.py +0 -0
  17. {cua_computer-0.3.3 → cua_computer-0.3.4}/computer/models.py +0 -0
  18. {cua_computer-0.3.3 → cua_computer-0.3.4}/computer/providers/__init__.py +0 -0
  19. {cua_computer-0.3.3 → cua_computer-0.3.4}/computer/providers/base.py +0 -0
  20. {cua_computer-0.3.3 → cua_computer-0.3.4}/computer/providers/cloud/__init__.py +0 -0
  21. {cua_computer-0.3.3 → cua_computer-0.3.4}/computer/providers/cloud/provider.py +0 -0
  22. {cua_computer-0.3.3 → cua_computer-0.3.4}/computer/providers/factory.py +0 -0
  23. {cua_computer-0.3.3 → cua_computer-0.3.4}/computer/providers/lume/__init__.py +0 -0
  24. {cua_computer-0.3.3 → cua_computer-0.3.4}/computer/providers/lume/provider.py +0 -0
  25. {cua_computer-0.3.3 → cua_computer-0.3.4}/computer/providers/lume_api.py +0 -0
  26. {cua_computer-0.3.3 → cua_computer-0.3.4}/computer/providers/lumier/__init__.py +0 -0
  27. {cua_computer-0.3.3 → cua_computer-0.3.4}/computer/providers/lumier/provider.py +0 -0
  28. {cua_computer-0.3.3 → cua_computer-0.3.4}/computer/providers/winsandbox/__init__.py +0 -0
  29. {cua_computer-0.3.3 → cua_computer-0.3.4}/computer/providers/winsandbox/provider.py +0 -0
  30. {cua_computer-0.3.3 → cua_computer-0.3.4}/computer/providers/winsandbox/setup_script.ps1 +0 -0
  31. {cua_computer-0.3.3 → cua_computer-0.3.4}/computer/telemetry.py +0 -0
  32. {cua_computer-0.3.3 → cua_computer-0.3.4}/computer/ui/__init__.py +0 -0
  33. {cua_computer-0.3.3 → cua_computer-0.3.4}/computer/ui/__main__.py +0 -0
  34. {cua_computer-0.3.3 → cua_computer-0.3.4}/computer/ui/gradio/__init__.py +0 -0
  35. {cua_computer-0.3.3 → cua_computer-0.3.4}/computer/ui/gradio/app.py +0 -0
  36. {cua_computer-0.3.3 → cua_computer-0.3.4}/computer/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cua-computer
3
- Version: 0.3.3
3
+ Version: 0.3.4
4
4
  Summary: Computer-Use Interface (CUI) framework powering Cua
5
5
  Author-Email: TryCua <gh@trycua.com>
6
6
  Requires-Python: >=3.11
@@ -42,9 +42,9 @@ class GenericComputerInterface(BaseComputerInterface):
42
42
  delay: Optional delay in seconds. If None, uses self.delay.
43
43
  """
44
44
  if delay is not None:
45
- if isinstance(delay, float) and delay > 0:
45
+ if isinstance(delay, float) or isinstance(delay, int) and delay > 0:
46
46
  await asyncio.sleep(delay)
47
- elif isinstance(self.delay, float) and self.delay > 0:
47
+ elif isinstance(self.delay, float) or isinstance(self.delay, int) and self.delay > 0:
48
48
  await asyncio.sleep(self.delay)
49
49
 
50
50
  @property
@@ -6,7 +6,7 @@ build-backend = "pdm.backend"
6
6
 
7
7
  [project]
8
8
  name = "cua-computer"
9
- version = "0.3.3"
9
+ version = "0.3.4"
10
10
  description = "Computer-Use Interface (CUI) framework powering Cua"
11
11
  readme = "README.md"
12
12
  authors = [
@@ -57,7 +57,7 @@ target-version = [
57
57
 
58
58
  [tool.ruff]
59
59
  line-length = 100
60
- target-version = "0.3.3"
60
+ target-version = "0.3.4"
61
61
  select = [
62
62
  "E",
63
63
  "F",
@@ -71,7 +71,7 @@ docstring-code-format = true
71
71
 
72
72
  [tool.mypy]
73
73
  strict = true
74
- python_version = "0.3.3"
74
+ python_version = "0.3.4"
75
75
  ignore_missing_imports = true
76
76
  disallow_untyped_defs = true
77
77
  check_untyped_defs = true
File without changes