cua-computer 0.3.0__tar.gz → 0.3.1__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.
- {cua_computer-0.3.0 → cua_computer-0.3.1}/PKG-INFO +1 -1
- {cua_computer-0.3.0 → cua_computer-0.3.1}/computer/interface/base.py +13 -2
- cua_computer-0.3.0/computer/interface/macos.py → cua_computer-0.3.1/computer/interface/generic.py +524 -437
- cua_computer-0.3.1/computer/interface/linux.py +8 -0
- cua_computer-0.3.1/computer/interface/macos.py +12 -0
- cua_computer-0.3.1/computer/interface/windows.py +8 -0
- {cua_computer-0.3.0 → cua_computer-0.3.1}/computer/providers/winsandbox/provider.py +22 -5
- {cua_computer-0.3.0 → cua_computer-0.3.1}/pyproject.toml +3 -3
- cua_computer-0.3.0/computer/interface/linux.py +0 -691
- cua_computer-0.3.0/computer/interface/windows.py +0 -690
- {cua_computer-0.3.0 → cua_computer-0.3.1}/README.md +0 -0
- {cua_computer-0.3.0 → cua_computer-0.3.1}/computer/__init__.py +0 -0
- {cua_computer-0.3.0 → cua_computer-0.3.1}/computer/computer.py +0 -0
- {cua_computer-0.3.0 → cua_computer-0.3.1}/computer/diorama_computer.py +0 -0
- {cua_computer-0.3.0 → cua_computer-0.3.1}/computer/helpers.py +0 -0
- {cua_computer-0.3.0 → cua_computer-0.3.1}/computer/interface/__init__.py +0 -0
- {cua_computer-0.3.0 → cua_computer-0.3.1}/computer/interface/factory.py +0 -0
- {cua_computer-0.3.0 → cua_computer-0.3.1}/computer/interface/models.py +0 -0
- {cua_computer-0.3.0 → cua_computer-0.3.1}/computer/logger.py +0 -0
- {cua_computer-0.3.0 → cua_computer-0.3.1}/computer/models.py +0 -0
- {cua_computer-0.3.0 → cua_computer-0.3.1}/computer/providers/__init__.py +0 -0
- {cua_computer-0.3.0 → cua_computer-0.3.1}/computer/providers/base.py +0 -0
- {cua_computer-0.3.0 → cua_computer-0.3.1}/computer/providers/cloud/__init__.py +0 -0
- {cua_computer-0.3.0 → cua_computer-0.3.1}/computer/providers/cloud/provider.py +0 -0
- {cua_computer-0.3.0 → cua_computer-0.3.1}/computer/providers/factory.py +0 -0
- {cua_computer-0.3.0 → cua_computer-0.3.1}/computer/providers/lume/__init__.py +0 -0
- {cua_computer-0.3.0 → cua_computer-0.3.1}/computer/providers/lume/provider.py +0 -0
- {cua_computer-0.3.0 → cua_computer-0.3.1}/computer/providers/lume_api.py +0 -0
- {cua_computer-0.3.0 → cua_computer-0.3.1}/computer/providers/lumier/__init__.py +0 -0
- {cua_computer-0.3.0 → cua_computer-0.3.1}/computer/providers/lumier/provider.py +0 -0
- {cua_computer-0.3.0 → cua_computer-0.3.1}/computer/providers/winsandbox/__init__.py +0 -0
- {cua_computer-0.3.0 → cua_computer-0.3.1}/computer/providers/winsandbox/setup_script.ps1 +0 -0
- {cua_computer-0.3.0 → cua_computer-0.3.1}/computer/telemetry.py +0 -0
- {cua_computer-0.3.0 → cua_computer-0.3.1}/computer/ui/__init__.py +0 -0
- {cua_computer-0.3.0 → cua_computer-0.3.1}/computer/ui/__main__.py +0 -0
- {cua_computer-0.3.0 → cua_computer-0.3.1}/computer/ui/gradio/__init__.py +0 -0
- {cua_computer-0.3.0 → cua_computer-0.3.1}/computer/ui/gradio/app.py +0 -0
- {cua_computer-0.3.0 → cua_computer-0.3.1}/computer/utils.py +0 -0
@@ -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.
|