cua-computer 0.1.27__tar.gz → 0.1.29__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cua-computer
3
- Version: 0.1.27
3
+ Version: 0.1.29
4
4
  Summary: Computer-Use Interface (CUI) framework powering Cua
5
5
  Author-Email: TryCua <gh@trycua.com>
6
6
  Requires-Python: >=3.10
@@ -14,6 +14,7 @@ Requires-Dist: pydantic>=2.11.1
14
14
  Provides-Extra: ui
15
15
  Requires-Dist: gradio<6.0.0,>=5.23.3; extra == "ui"
16
16
  Requires-Dist: python-dotenv<2.0.0,>=1.0.1; extra == "ui"
17
+ Requires-Dist: datasets<4.0.0,>=3.6.0; extra == "ui"
17
18
  Description-Content-Type: text/markdown
18
19
 
19
20
  <div align="center">
@@ -335,7 +335,15 @@ class MacOSComputerInterface(BaseComputerInterface):
335
335
 
336
336
  # Keyboard Actions
337
337
  async def type_text(self, text: str) -> None:
338
- await self._send_command("type_text", {"text": text})
338
+ # Temporary fix for https://github.com/trycua/cua/issues/165
339
+ # Check if text contains Unicode characters
340
+ if any(ord(char) > 127 for char in text):
341
+ # For Unicode text, use clipboard and paste
342
+ await self.set_clipboard(text)
343
+ await self.hotkey(Key.COMMAND, 'v')
344
+ else:
345
+ # For ASCII text, use the regular typing method
346
+ await self._send_command("type_text", {"text": text})
339
347
 
340
348
  async def press(self, key: "KeyType") -> None:
341
349
  """Press a single key.
@@ -6,7 +6,7 @@ build-backend = "pdm.backend"
6
6
 
7
7
  [project]
8
8
  name = "cua-computer"
9
- version = "0.1.27"
9
+ version = "0.1.29"
10
10
  description = "Computer-Use Interface (CUI) framework powering Cua"
11
11
  readme = "README.md"
12
12
  authors = [
@@ -27,6 +27,7 @@ requires-python = ">=3.10"
27
27
  ui = [
28
28
  "gradio>=5.23.3,<6.0.0",
29
29
  "python-dotenv>=1.0.1,<2.0.0",
30
+ "datasets>=3.6.0,<4.0.0",
30
31
  ]
31
32
 
32
33
  [tool.pdm]
@@ -50,7 +51,7 @@ target-version = [
50
51
 
51
52
  [tool.ruff]
52
53
  line-length = 100
53
- target-version = "0.1.27"
54
+ target-version = "0.1.29"
54
55
  select = [
55
56
  "E",
56
57
  "F",
@@ -64,7 +65,7 @@ docstring-code-format = true
64
65
 
65
66
  [tool.mypy]
66
67
  strict = true
67
- python_version = "0.1.27"
68
+ python_version = "0.1.29"
68
69
  ignore_missing_imports = true
69
70
  disallow_untyped_defs = true
70
71
  check_untyped_defs = true
File without changes