cua-computer 0.3.0__tar.gz → 0.3.2__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 (38) hide show
  1. {cua_computer-0.3.0 → cua_computer-0.3.2}/PKG-INFO +1 -1
  2. {cua_computer-0.3.0 → cua_computer-0.3.2}/computer/interface/base.py +13 -2
  3. cua_computer-0.3.0/computer/interface/macos.py → cua_computer-0.3.2/computer/interface/generic.py +524 -437
  4. cua_computer-0.3.2/computer/interface/linux.py +8 -0
  5. cua_computer-0.3.2/computer/interface/macos.py +12 -0
  6. cua_computer-0.3.2/computer/interface/windows.py +8 -0
  7. {cua_computer-0.3.0 → cua_computer-0.3.2}/computer/providers/winsandbox/provider.py +22 -5
  8. {cua_computer-0.3.0 → cua_computer-0.3.2}/pyproject.toml +3 -3
  9. cua_computer-0.3.0/computer/interface/linux.py +0 -691
  10. cua_computer-0.3.0/computer/interface/windows.py +0 -690
  11. {cua_computer-0.3.0 → cua_computer-0.3.2}/README.md +0 -0
  12. {cua_computer-0.3.0 → cua_computer-0.3.2}/computer/__init__.py +0 -0
  13. {cua_computer-0.3.0 → cua_computer-0.3.2}/computer/computer.py +0 -0
  14. {cua_computer-0.3.0 → cua_computer-0.3.2}/computer/diorama_computer.py +0 -0
  15. {cua_computer-0.3.0 → cua_computer-0.3.2}/computer/helpers.py +0 -0
  16. {cua_computer-0.3.0 → cua_computer-0.3.2}/computer/interface/__init__.py +0 -0
  17. {cua_computer-0.3.0 → cua_computer-0.3.2}/computer/interface/factory.py +0 -0
  18. {cua_computer-0.3.0 → cua_computer-0.3.2}/computer/interface/models.py +0 -0
  19. {cua_computer-0.3.0 → cua_computer-0.3.2}/computer/logger.py +0 -0
  20. {cua_computer-0.3.0 → cua_computer-0.3.2}/computer/models.py +0 -0
  21. {cua_computer-0.3.0 → cua_computer-0.3.2}/computer/providers/__init__.py +0 -0
  22. {cua_computer-0.3.0 → cua_computer-0.3.2}/computer/providers/base.py +0 -0
  23. {cua_computer-0.3.0 → cua_computer-0.3.2}/computer/providers/cloud/__init__.py +0 -0
  24. {cua_computer-0.3.0 → cua_computer-0.3.2}/computer/providers/cloud/provider.py +0 -0
  25. {cua_computer-0.3.0 → cua_computer-0.3.2}/computer/providers/factory.py +0 -0
  26. {cua_computer-0.3.0 → cua_computer-0.3.2}/computer/providers/lume/__init__.py +0 -0
  27. {cua_computer-0.3.0 → cua_computer-0.3.2}/computer/providers/lume/provider.py +0 -0
  28. {cua_computer-0.3.0 → cua_computer-0.3.2}/computer/providers/lume_api.py +0 -0
  29. {cua_computer-0.3.0 → cua_computer-0.3.2}/computer/providers/lumier/__init__.py +0 -0
  30. {cua_computer-0.3.0 → cua_computer-0.3.2}/computer/providers/lumier/provider.py +0 -0
  31. {cua_computer-0.3.0 → cua_computer-0.3.2}/computer/providers/winsandbox/__init__.py +0 -0
  32. {cua_computer-0.3.0 → cua_computer-0.3.2}/computer/providers/winsandbox/setup_script.ps1 +0 -0
  33. {cua_computer-0.3.0 → cua_computer-0.3.2}/computer/telemetry.py +0 -0
  34. {cua_computer-0.3.0 → cua_computer-0.3.2}/computer/ui/__init__.py +0 -0
  35. {cua_computer-0.3.0 → cua_computer-0.3.2}/computer/ui/__main__.py +0 -0
  36. {cua_computer-0.3.0 → cua_computer-0.3.2}/computer/ui/gradio/__init__.py +0 -0
  37. {cua_computer-0.3.0 → cua_computer-0.3.2}/computer/ui/gradio/app.py +0 -0
  38. {cua_computer-0.3.0 → cua_computer-0.3.2}/computer/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cua-computer
3
- Version: 0.3.0
3
+ Version: 0.3.2
4
4
  Summary: Computer-Use Interface (CUI) framework powering Cua
5
5
  Author-Email: TryCua <gh@trycua.com>
6
6
  Requires-Python: >=3.11
@@ -208,8 +208,14 @@ class BaseComputerInterface(ABC):
208
208
  pass
209
209
 
210
210
  @abstractmethod
211
- async def read_bytes(self, path: str) -> bytes:
212
- """Read file binary contents."""
211
+ async def read_bytes(self, path: str, offset: int = 0, length: Optional[int] = None) -> bytes:
212
+ """Read file binary contents with optional seeking support.
213
+
214
+ Args:
215
+ path: Path to the file
216
+ offset: Byte offset to start reading from (default: 0)
217
+ length: Number of bytes to read (default: None for entire file)
218
+ """
213
219
  pass
214
220
 
215
221
  @abstractmethod
@@ -232,6 +238,11 @@ class BaseComputerInterface(ABC):
232
238
  """Delete directory."""
233
239
  pass
234
240
 
241
+ @abstractmethod
242
+ async def get_file_size(self, path: str) -> int:
243
+ """Get the size of a file in bytes."""
244
+ pass
245
+
235
246
  @abstractmethod
236
247
  async def run_command(self, command: str) -> CommandResult:
237
248
  """Run shell command and return structured result.