computer-use-ootb-internal 0.0.195__tar.gz → 0.0.196__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.
Files changed (44) hide show
  1. {computer_use_ootb_internal-0.0.195 → computer_use_ootb_internal-0.0.196}/PKG-INFO +1 -1
  2. {computer_use_ootb_internal-0.0.195 → computer_use_ootb_internal-0.0.196}/pyproject.toml +1 -1
  3. {computer_use_ootb_internal-0.0.195 → computer_use_ootb_internal-0.0.196}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/simple_parser/gui_capture.py +21 -8
  4. {computer_use_ootb_internal-0.0.195 → computer_use_ootb_internal-0.0.196}/.gitignore +0 -0
  5. {computer_use_ootb_internal-0.0.195 → computer_use_ootb_internal-0.0.196}/src/computer_use_ootb_internal/README.md +0 -0
  6. {computer_use_ootb_internal-0.0.195 → computer_use_ootb_internal-0.0.196}/src/computer_use_ootb_internal/__init__.py +0 -0
  7. {computer_use_ootb_internal-0.0.195 → computer_use_ootb_internal-0.0.196}/src/computer_use_ootb_internal/app_teachmode.py +0 -0
  8. {computer_use_ootb_internal-0.0.195 → computer_use_ootb_internal-0.0.196}/src/computer_use_ootb_internal/computer_use_demo/animation/click_animation.py +0 -0
  9. {computer_use_ootb_internal-0.0.195 → computer_use_ootb_internal-0.0.196}/src/computer_use_ootb_internal/computer_use_demo/animation/icons8-select-cursor-transparent-96.gif +0 -0
  10. {computer_use_ootb_internal-0.0.195 → computer_use_ootb_internal-0.0.196}/src/computer_use_ootb_internal/computer_use_demo/animation/test_animation.py +0 -0
  11. {computer_use_ootb_internal-0.0.195 → computer_use_ootb_internal-0.0.196}/src/computer_use_ootb_internal/computer_use_demo/executor/teachmode_executor.py +0 -0
  12. {computer_use_ootb_internal-0.0.195 → computer_use_ootb_internal-0.0.196}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/simple_parser/__init__.py +0 -0
  13. {computer_use_ootb_internal-0.0.195 → computer_use_ootb_internal-0.0.196}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/simple_parser/utils.py +0 -0
  14. {computer_use_ootb_internal-0.0.195 → computer_use_ootb_internal-0.0.196}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/uia_tools/__init__.py +0 -0
  15. {computer_use_ootb_internal-0.0.195 → computer_use_ootb_internal-0.0.196}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/uia_tools/screenshot_cli.py +0 -0
  16. {computer_use_ootb_internal-0.0.195 → computer_use_ootb_internal-0.0.196}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/uia_tools/screenshot_service.py +0 -0
  17. {computer_use_ootb_internal-0.0.195 → computer_use_ootb_internal-0.0.196}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/llm_utils.py +0 -0
  18. {computer_use_ootb_internal-0.0.195 → computer_use_ootb_internal-0.0.196}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/oai.py +0 -0
  19. {computer_use_ootb_internal-0.0.195 → computer_use_ootb_internal-0.0.196}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/run_litellm.py +0 -0
  20. {computer_use_ootb_internal-0.0.195 → computer_use_ootb_internal-0.0.196}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/run_llm.py +0 -0
  21. {computer_use_ootb_internal-0.0.195 → computer_use_ootb_internal-0.0.196}/src/computer_use_ootb_internal/computer_use_demo/tools/__init__.py +0 -0
  22. {computer_use_ootb_internal-0.0.195 → computer_use_ootb_internal-0.0.196}/src/computer_use_ootb_internal/computer_use_demo/tools/aws_request.py +0 -0
  23. {computer_use_ootb_internal-0.0.195 → computer_use_ootb_internal-0.0.196}/src/computer_use_ootb_internal/computer_use_demo/tools/base.py +0 -0
  24. {computer_use_ootb_internal-0.0.195 → computer_use_ootb_internal-0.0.196}/src/computer_use_ootb_internal/computer_use_demo/tools/bash.py +0 -0
  25. {computer_use_ootb_internal-0.0.195 → computer_use_ootb_internal-0.0.196}/src/computer_use_ootb_internal/computer_use_demo/tools/collection.py +0 -0
  26. {computer_use_ootb_internal-0.0.195 → computer_use_ootb_internal-0.0.196}/src/computer_use_ootb_internal/computer_use_demo/tools/colorful_text.py +0 -0
  27. {computer_use_ootb_internal-0.0.195 → computer_use_ootb_internal-0.0.196}/src/computer_use_ootb_internal/computer_use_demo/tools/computer.py +0 -0
  28. {computer_use_ootb_internal-0.0.195 → computer_use_ootb_internal-0.0.196}/src/computer_use_ootb_internal/computer_use_demo/tools/computer_marbot.py +0 -0
  29. {computer_use_ootb_internal-0.0.195 → computer_use_ootb_internal-0.0.196}/src/computer_use_ootb_internal/computer_use_demo/tools/edit.py +0 -0
  30. {computer_use_ootb_internal-0.0.195 → computer_use_ootb_internal-0.0.196}/src/computer_use_ootb_internal/computer_use_demo/tools/run.py +0 -0
  31. {computer_use_ootb_internal-0.0.195 → computer_use_ootb_internal-0.0.196}/src/computer_use_ootb_internal/computer_use_demo/tools/screen_capture.py +0 -0
  32. {computer_use_ootb_internal-0.0.195 → computer_use_ootb_internal-0.0.196}/src/computer_use_ootb_internal/dependency_check.py +0 -0
  33. {computer_use_ootb_internal-0.0.195 → computer_use_ootb_internal-0.0.196}/src/computer_use_ootb_internal/guard_service.py +0 -0
  34. {computer_use_ootb_internal-0.0.195 → computer_use_ootb_internal-0.0.196}/src/computer_use_ootb_internal/preparation/__init__.py +0 -0
  35. {computer_use_ootb_internal-0.0.195 → computer_use_ootb_internal-0.0.196}/src/computer_use_ootb_internal/preparation/excel_prepare.py +0 -0
  36. {computer_use_ootb_internal-0.0.195 → computer_use_ootb_internal-0.0.196}/src/computer_use_ootb_internal/preparation/powerpoint_prepare.py +0 -0
  37. {computer_use_ootb_internal-0.0.195 → computer_use_ootb_internal-0.0.196}/src/computer_use_ootb_internal/preparation/pr_prepare.py +0 -0
  38. {computer_use_ootb_internal-0.0.195 → computer_use_ootb_internal-0.0.196}/src/computer_use_ootb_internal/preparation/star_rail_prepare.py +0 -0
  39. {computer_use_ootb_internal-0.0.195 → computer_use_ootb_internal-0.0.196}/src/computer_use_ootb_internal/preparation/word_prepare.py +0 -0
  40. {computer_use_ootb_internal-0.0.195 → computer_use_ootb_internal-0.0.196}/src/computer_use_ootb_internal/requirements-lite.txt +0 -0
  41. {computer_use_ootb_internal-0.0.195 → computer_use_ootb_internal-0.0.196}/src/computer_use_ootb_internal/run_teachmode_ootb_args.py +0 -0
  42. {computer_use_ootb_internal-0.0.195 → computer_use_ootb_internal-0.0.196}/src/computer_use_ootb_internal/service_manager.py +0 -0
  43. {computer_use_ootb_internal-0.0.195 → computer_use_ootb_internal-0.0.196}/src/computer_use_ootb_internal/signal_connection.py +0 -0
  44. {computer_use_ootb_internal-0.0.195 → computer_use_ootb_internal-0.0.196}/src/computer_use_ootb_internal/test_autogui.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: computer-use-ootb-internal
3
- Version: 0.0.195
3
+ Version: 0.0.196
4
4
  Summary: Computer Use OOTB
5
5
  Author-email: Siyuan Hu <siyuan.hu.sg@gmail.com>
6
6
  Requires-Python: >=3.11
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "computer-use-ootb-internal"
7
- version = "0.0.195"
7
+ version = "0.0.196"
8
8
  description = "Computer Use OOTB"
9
9
  authors = [{ name = "Siyuan Hu", email = "siyuan.hu.sg@gmail.com" }]
10
10
  requires-python = ">=3.11"
@@ -11,6 +11,7 @@ import time
11
11
  import win32gui
12
12
  from typing import List, Tuple, Dict
13
13
  from screeninfo import get_monitors
14
+ import pyautogui
14
15
 
15
16
 
16
17
  class Rectangle:
@@ -240,15 +241,27 @@ class GUICapture:
240
241
 
241
242
  # Get monitor dimensions from visibility_checker
242
243
  monitor = self.visibility_checker.monitor
243
- # Capture screenshot of the specific monitor
244
- # screenshot = auto.GetRootControl().ToBitmap(monitor.left, monitor.top,
245
- # monitor.right - monitor.left,
246
- # monitor.bottom - monitor.top)
247
- bbox=(monitor.left, monitor.top,
248
- monitor.right, monitor.bottom)
249
- screenshot = ImageGrab.grab(bbox=bbox, all_screens=True)
250
244
 
251
- screenshot = screenshot.convert('RGB')
245
+ # Define the bounding box for pyautogui
246
+ # bbox for ImageGrab is (left, top, right, bottom)
247
+ # region for pyautogui is (left, top, width, height)
248
+ pyautogui_region = (
249
+ monitor.left,
250
+ monitor.top,
251
+ monitor.right - monitor.left,
252
+ monitor.bottom - monitor.top
253
+ )
254
+
255
+ # Capture screenshot of the specific monitor region using pyautogui
256
+ try:
257
+ screenshot = pyautogui.screenshot(region=pyautogui_region)
258
+ except Exception as e:
259
+ # Add logging or raise a more specific exception if needed
260
+ print(f"Error during pyautogui.screenshot: {e}")
261
+ # Fallback or re-raise, depending on desired error handling
262
+ # For now, let's re-raise to make it clear an error occurred.
263
+ raise
264
+
252
265
  screenshot.save(screenshot_path)
253
266
  return screenshot_path
254
267