orgo 0.0.17__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.17
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.17"
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]:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: orgo
3
- Version: 0.0.17
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
File without changes