orgo 0.0.16__tar.gz → 0.0.18__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.16 → orgo-0.0.18}/PKG-INFO +1 -1
- {orgo-0.0.16 → orgo-0.0.18}/pyproject.toml +1 -1
- {orgo-0.0.16 → orgo-0.0.18}/src/orgo/api/client.py +9 -3
- {orgo-0.0.16 → orgo-0.0.18}/src/orgo/computer.py +11 -3
- {orgo-0.0.16 → orgo-0.0.18}/src/orgo/prompt.py +3 -2
- {orgo-0.0.16 → orgo-0.0.18}/src/orgo.egg-info/PKG-INFO +1 -1
- {orgo-0.0.16 → orgo-0.0.18}/README.md +0 -0
- {orgo-0.0.16 → orgo-0.0.18}/setup.cfg +0 -0
- {orgo-0.0.16 → orgo-0.0.18}/src/orgo/__init__.py +0 -0
- {orgo-0.0.16 → orgo-0.0.18}/src/orgo/api/__init__.py +0 -0
- {orgo-0.0.16 → orgo-0.0.18}/src/orgo/project.py +0 -0
- {orgo-0.0.16 → orgo-0.0.18}/src/orgo/utils/__init__.py +0 -0
- {orgo-0.0.16 → orgo-0.0.18}/src/orgo/utils/auth.py +0 -0
- {orgo-0.0.16 → orgo-0.0.18}/src/orgo.egg-info/SOURCES.txt +0 -0
- {orgo-0.0.16 → orgo-0.0.18}/src/orgo.egg-info/dependency_links.txt +0 -0
- {orgo-0.0.16 → orgo-0.0.18}/src/orgo.egg-info/requires.txt +0 -0
- {orgo-0.0.16 → orgo-0.0.18}/src/orgo.egg-info/top_level.txt +0 -0
|
@@ -51,11 +51,17 @@ class ApiClient:
|
|
|
51
51
|
def get_status(self, project_id: str) -> Dict[str, Any]:
|
|
52
52
|
return self._request("GET", f"projects/by-name/{project_id}")
|
|
53
53
|
|
|
54
|
+
def start_computer(self, project_id: str) -> Dict[str, Any]:
|
|
55
|
+
return self._request("POST", f"projects/{project_id}/start")
|
|
56
|
+
|
|
57
|
+
def stop_computer(self, project_id: str) -> Dict[str, Any]:
|
|
58
|
+
return self._request("POST", f"projects/{project_id}/stop")
|
|
59
|
+
|
|
54
60
|
def restart_computer(self, project_id: str) -> Dict[str, Any]:
|
|
55
|
-
return self._request("POST", f"
|
|
61
|
+
return self._request("POST", f"projects/{project_id}/restart")
|
|
56
62
|
|
|
57
|
-
def
|
|
58
|
-
return self._request("POST", f"
|
|
63
|
+
def delete_computer(self, project_id: str) -> Dict[str, Any]:
|
|
64
|
+
return self._request("POST", f"projects/{project_id}/delete")
|
|
59
65
|
|
|
60
66
|
# Computer control methods
|
|
61
67
|
def left_click(self, project_id: str, x: int, y: int) -> Dict[str, Any]:
|
|
@@ -60,13 +60,21 @@ class Computer:
|
|
|
60
60
|
"""Get current computer status"""
|
|
61
61
|
return self.api.get_status(self.project_id)
|
|
62
62
|
|
|
63
|
+
def start(self) -> Dict[str, Any]:
|
|
64
|
+
"""Start the computer"""
|
|
65
|
+
return self.api.start_computer(self.project_id)
|
|
66
|
+
|
|
67
|
+
def stop(self) -> Dict[str, Any]:
|
|
68
|
+
"""Stop the computer"""
|
|
69
|
+
return self.api.stop_computer(self.project_id)
|
|
70
|
+
|
|
63
71
|
def restart(self) -> Dict[str, Any]:
|
|
64
72
|
"""Restart the computer"""
|
|
65
73
|
return self.api.restart_computer(self.project_id)
|
|
66
74
|
|
|
67
|
-
def
|
|
68
|
-
"""Terminate the computer instance"""
|
|
69
|
-
return self.api.
|
|
75
|
+
def destroy(self) -> Dict[str, Any]:
|
|
76
|
+
"""Terminate and delete the computer instance"""
|
|
77
|
+
return self.api.delete_computer(self.project_id)
|
|
70
78
|
|
|
71
79
|
# Navigation methods
|
|
72
80
|
def left_click(self, x: int, y: int) -> Dict[str, Any]:
|
|
@@ -297,8 +297,9 @@ class AnthropicProvider:
|
|
|
297
297
|
for img_block in images_to_remove:
|
|
298
298
|
content_item = img_block["content_item"]
|
|
299
299
|
if "source" in content_item and "data" in content_item["source"]:
|
|
300
|
-
# Replace
|
|
301
|
-
content_item["source"]["data"] = "
|
|
300
|
+
# Replace with a minimal valid base64 image (1x1 transparent PNG)
|
|
301
|
+
content_item["source"]["data"] = "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg=="
|
|
302
|
+
content_item["source"]["media_type"] = "image/png"
|
|
302
303
|
|
|
303
304
|
def _execute_tool(self,
|
|
304
305
|
computer_id: str,
|
|
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
|