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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: orgo
3
- Version: 0.0.16
3
+ Version: 0.0.18
4
4
  Summary: Computers for AI agents
5
5
  Author: Orgo Team
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "orgo"
7
- version = "0.0.16"
7
+ version = "0.0.18"
8
8
  description = "Computers for AI agents"
9
9
  authors = [{name = "Orgo Team"}]
10
10
  license = {text = "MIT"}
@@ -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"computers/{project_id}/restart")
61
+ return self._request("POST", f"projects/{project_id}/restart")
56
62
 
57
- def shutdown_computer(self, project_id: str) -> Dict[str, Any]:
58
- return self._request("POST", f"computers/{project_id}/shutdown")
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 shutdown(self) -> Dict[str, Any]:
68
- """Terminate the computer instance"""
69
- return self.api.shutdown_computer(self.project_id)
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 the base64 data with a placeholder
301
- content_item["source"]["data"] = "[IMAGE DATA REMOVED]"
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,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: orgo
3
- Version: 0.0.16
3
+ Version: 0.0.18
4
4
  Summary: Computers for AI agents
5
5
  Author: Orgo Team
6
6
  License: MIT
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes