cua-computer 0.2.13__py3-none-any.whl → 0.3.1__py3-none-any.whl
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.
- computer/interface/base.py +39 -6
- computer/interface/generic.py +785 -0
- computer/interface/linux.py +4 -684
- computer/interface/macos.py +5 -688
- computer/interface/models.py +12 -0
- computer/interface/windows.py +4 -683
- computer/providers/winsandbox/provider.py +22 -5
- {cua_computer-0.2.13.dist-info → cua_computer-0.3.1.dist-info}/METADATA +7 -7
- {cua_computer-0.2.13.dist-info → cua_computer-0.3.1.dist-info}/RECORD +11 -10
- {cua_computer-0.2.13.dist-info → cua_computer-0.3.1.dist-info}/WHEEL +0 -0
- {cua_computer-0.2.13.dist-info → cua_computer-0.3.1.dist-info}/entry_points.txt +0 -0
computer/interface/models.py
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
from enum import Enum
|
2
2
|
from typing import Dict, List, Any, TypedDict, Union, Literal
|
3
|
+
from dataclasses import dataclass
|
4
|
+
|
5
|
+
@dataclass
|
6
|
+
class CommandResult:
|
7
|
+
stdout: str
|
8
|
+
stderr: str
|
9
|
+
returncode: int
|
10
|
+
|
11
|
+
def __init__(self, stdout: str, stderr: str, returncode: int):
|
12
|
+
self.stdout = stdout
|
13
|
+
self.stderr = stderr
|
14
|
+
self.returncode = returncode
|
3
15
|
|
4
16
|
# Navigation key literals
|
5
17
|
NavigationKey = Literal['pagedown', 'pageup', 'home', 'end', 'left', 'right', 'up', 'down']
|