orgo 0.0.22__tar.gz → 0.0.23__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.
- {orgo-0.0.22 → orgo-0.0.23}/PKG-INFO +1 -1
- {orgo-0.0.22 → orgo-0.0.23}/pyproject.toml +1 -1
- {orgo-0.0.22 → orgo-0.0.23}/src/orgo/api/client.py +13 -0
- {orgo-0.0.22 → orgo-0.0.23}/src/orgo/computer.py +18 -0
- {orgo-0.0.22 → orgo-0.0.23}/src/orgo.egg-info/PKG-INFO +1 -1
- {orgo-0.0.22 → orgo-0.0.23}/README.md +0 -0
- {orgo-0.0.22 → orgo-0.0.23}/setup.cfg +0 -0
- {orgo-0.0.22 → orgo-0.0.23}/src/orgo/__init__.py +0 -0
- {orgo-0.0.22 → orgo-0.0.23}/src/orgo/api/__init__.py +0 -0
- {orgo-0.0.22 → orgo-0.0.23}/src/orgo/project.py +0 -0
- {orgo-0.0.22 → orgo-0.0.23}/src/orgo/prompt.py +0 -0
- {orgo-0.0.22 → orgo-0.0.23}/src/orgo/utils/__init__.py +0 -0
- {orgo-0.0.22 → orgo-0.0.23}/src/orgo/utils/auth.py +0 -0
- {orgo-0.0.22 → orgo-0.0.23}/src/orgo.egg-info/SOURCES.txt +0 -0
- {orgo-0.0.22 → orgo-0.0.23}/src/orgo.egg-info/dependency_links.txt +0 -0
- {orgo-0.0.22 → orgo-0.0.23}/src/orgo.egg-info/requires.txt +0 -0
- {orgo-0.0.22 → orgo-0.0.23}/src/orgo.egg-info/top_level.txt +0 -0
|
@@ -101,6 +101,19 @@ class ApiClient:
|
|
|
101
101
|
"button": "left", "x": x, "y": y, "double": True
|
|
102
102
|
})
|
|
103
103
|
|
|
104
|
+
def drag(self, project_id: str, start_x: int, start_y: int,
|
|
105
|
+
end_x: int, end_y: int, button: str = "left",
|
|
106
|
+
duration: float = 0.5) -> Dict[str, Any]:
|
|
107
|
+
"""Perform a drag operation from start to end coordinates"""
|
|
108
|
+
return self._request("POST", f"computers/{project_id}/drag", {
|
|
109
|
+
"start_x": start_x,
|
|
110
|
+
"start_y": start_y,
|
|
111
|
+
"end_x": end_x,
|
|
112
|
+
"end_y": end_y,
|
|
113
|
+
"button": button,
|
|
114
|
+
"duration": duration
|
|
115
|
+
})
|
|
116
|
+
|
|
104
117
|
def scroll(self, project_id: str, direction: str, amount: int) -> Dict[str, Any]:
|
|
105
118
|
return self._request("POST", f"computers/{project_id}/scroll", {
|
|
106
119
|
"direction": direction, "amount": amount
|
|
@@ -132,6 +132,24 @@ class Computer:
|
|
|
132
132
|
"""Perform double click at specified coordinates"""
|
|
133
133
|
return self.api.double_click(self.project_id, x, y)
|
|
134
134
|
|
|
135
|
+
def drag(self, start_x: int, start_y: int, end_x: int, end_y: int,
|
|
136
|
+
button: str = "left", duration: float = 0.5) -> Dict[str, Any]:
|
|
137
|
+
"""
|
|
138
|
+
Perform a smooth drag operation from start to end coordinates.
|
|
139
|
+
|
|
140
|
+
Args:
|
|
141
|
+
start_x: Starting X coordinate
|
|
142
|
+
start_y: Starting Y coordinate
|
|
143
|
+
end_x: Ending X coordinate
|
|
144
|
+
end_y: Ending Y coordinate
|
|
145
|
+
button: Mouse button to use ("left" or "right", default: "left")
|
|
146
|
+
duration: Duration of the drag in seconds (0.1 to 5.0, default: 0.5)
|
|
147
|
+
|
|
148
|
+
Returns:
|
|
149
|
+
Dict with operation result
|
|
150
|
+
"""
|
|
151
|
+
return self.api.drag(self.project_id, start_x, start_y, end_x, end_y, button, duration)
|
|
152
|
+
|
|
135
153
|
def scroll(self, direction: str = "down", amount: int = 1) -> Dict[str, Any]:
|
|
136
154
|
"""Scroll in specified direction and amount"""
|
|
137
155
|
return self.api.scroll(self.project_id, direction, amount)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|