computer-use-ootb-internal 0.0.178__tar.gz → 0.0.179__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 (41) hide show
  1. {computer_use_ootb_internal-0.0.178 → computer_use_ootb_internal-0.0.179}/PKG-INFO +1 -1
  2. {computer_use_ootb_internal-0.0.178 → computer_use_ootb_internal-0.0.179}/pyproject.toml +1 -1
  3. {computer_use_ootb_internal-0.0.178 → computer_use_ootb_internal-0.0.179}/src/computer_use_ootb_internal/app_teachmode.py +1 -1
  4. {computer_use_ootb_internal-0.0.178 → computer_use_ootb_internal-0.0.179}/src/computer_use_ootb_internal/run_teachmode_ootb_args.py +3 -1
  5. computer_use_ootb_internal-0.0.178/src/computer_use_ootb_internal/test_click_0425.py → computer_use_ootb_internal-0.0.179/src/computer_use_ootb_internal/test_autogui.py +39 -1
  6. {computer_use_ootb_internal-0.0.178 → computer_use_ootb_internal-0.0.179}/.gitignore +0 -0
  7. {computer_use_ootb_internal-0.0.178 → computer_use_ootb_internal-0.0.179}/src/computer_use_ootb_internal/README.md +0 -0
  8. {computer_use_ootb_internal-0.0.178 → computer_use_ootb_internal-0.0.179}/src/computer_use_ootb_internal/__init__.py +0 -0
  9. {computer_use_ootb_internal-0.0.178 → computer_use_ootb_internal-0.0.179}/src/computer_use_ootb_internal/computer_use_demo/animation/click_animation.py +0 -0
  10. {computer_use_ootb_internal-0.0.178 → computer_use_ootb_internal-0.0.179}/src/computer_use_ootb_internal/computer_use_demo/animation/icons8-select-cursor-transparent-96.gif +0 -0
  11. {computer_use_ootb_internal-0.0.178 → computer_use_ootb_internal-0.0.179}/src/computer_use_ootb_internal/computer_use_demo/animation/test_animation.py +0 -0
  12. {computer_use_ootb_internal-0.0.178 → computer_use_ootb_internal-0.0.179}/src/computer_use_ootb_internal/computer_use_demo/executor/teachmode_executor.py +0 -0
  13. {computer_use_ootb_internal-0.0.178 → computer_use_ootb_internal-0.0.179}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/simple_parser/__init__.py +0 -0
  14. {computer_use_ootb_internal-0.0.178 → computer_use_ootb_internal-0.0.179}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/simple_parser/gui_capture.py +0 -0
  15. {computer_use_ootb_internal-0.0.178 → computer_use_ootb_internal-0.0.179}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/simple_parser/utils.py +0 -0
  16. {computer_use_ootb_internal-0.0.178 → computer_use_ootb_internal-0.0.179}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/uia_tools/__init__.py +0 -0
  17. {computer_use_ootb_internal-0.0.178 → computer_use_ootb_internal-0.0.179}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/uia_tools/screenshot_cli.py +0 -0
  18. {computer_use_ootb_internal-0.0.178 → computer_use_ootb_internal-0.0.179}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/uia_tools/screenshot_service.py +0 -0
  19. {computer_use_ootb_internal-0.0.178 → computer_use_ootb_internal-0.0.179}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/llm_utils.py +0 -0
  20. {computer_use_ootb_internal-0.0.178 → computer_use_ootb_internal-0.0.179}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/oai.py +0 -0
  21. {computer_use_ootb_internal-0.0.178 → computer_use_ootb_internal-0.0.179}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/run_litellm.py +0 -0
  22. {computer_use_ootb_internal-0.0.178 → computer_use_ootb_internal-0.0.179}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/run_llm.py +0 -0
  23. {computer_use_ootb_internal-0.0.178 → computer_use_ootb_internal-0.0.179}/src/computer_use_ootb_internal/computer_use_demo/tools/__init__.py +0 -0
  24. {computer_use_ootb_internal-0.0.178 → computer_use_ootb_internal-0.0.179}/src/computer_use_ootb_internal/computer_use_demo/tools/aws_request.py +0 -0
  25. {computer_use_ootb_internal-0.0.178 → computer_use_ootb_internal-0.0.179}/src/computer_use_ootb_internal/computer_use_demo/tools/base.py +0 -0
  26. {computer_use_ootb_internal-0.0.178 → computer_use_ootb_internal-0.0.179}/src/computer_use_ootb_internal/computer_use_demo/tools/bash.py +0 -0
  27. {computer_use_ootb_internal-0.0.178 → computer_use_ootb_internal-0.0.179}/src/computer_use_ootb_internal/computer_use_demo/tools/collection.py +0 -0
  28. {computer_use_ootb_internal-0.0.178 → computer_use_ootb_internal-0.0.179}/src/computer_use_ootb_internal/computer_use_demo/tools/colorful_text.py +0 -0
  29. {computer_use_ootb_internal-0.0.178 → computer_use_ootb_internal-0.0.179}/src/computer_use_ootb_internal/computer_use_demo/tools/computer.py +0 -0
  30. {computer_use_ootb_internal-0.0.178 → computer_use_ootb_internal-0.0.179}/src/computer_use_ootb_internal/computer_use_demo/tools/computer_marbot.py +0 -0
  31. {computer_use_ootb_internal-0.0.178 → computer_use_ootb_internal-0.0.179}/src/computer_use_ootb_internal/computer_use_demo/tools/edit.py +0 -0
  32. {computer_use_ootb_internal-0.0.178 → computer_use_ootb_internal-0.0.179}/src/computer_use_ootb_internal/computer_use_demo/tools/run.py +0 -0
  33. {computer_use_ootb_internal-0.0.178 → computer_use_ootb_internal-0.0.179}/src/computer_use_ootb_internal/computer_use_demo/tools/screen_capture.py +0 -0
  34. {computer_use_ootb_internal-0.0.178 → computer_use_ootb_internal-0.0.179}/src/computer_use_ootb_internal/dependency_check.py +0 -0
  35. {computer_use_ootb_internal-0.0.178 → computer_use_ootb_internal-0.0.179}/src/computer_use_ootb_internal/guard_service.py +0 -0
  36. {computer_use_ootb_internal-0.0.178 → computer_use_ootb_internal-0.0.179}/src/computer_use_ootb_internal/preparation/__init__.py +0 -0
  37. {computer_use_ootb_internal-0.0.178 → computer_use_ootb_internal-0.0.179}/src/computer_use_ootb_internal/preparation/powerpoint_prepare.py +0 -0
  38. {computer_use_ootb_internal-0.0.178 → computer_use_ootb_internal-0.0.179}/src/computer_use_ootb_internal/preparation/star_rail_prepare.py +0 -0
  39. {computer_use_ootb_internal-0.0.178 → computer_use_ootb_internal-0.0.179}/src/computer_use_ootb_internal/requirements-lite.txt +0 -0
  40. {computer_use_ootb_internal-0.0.178 → computer_use_ootb_internal-0.0.179}/src/computer_use_ootb_internal/service_manager.py +0 -0
  41. {computer_use_ootb_internal-0.0.178 → computer_use_ootb_internal-0.0.179}/src/computer_use_ootb_internal/signal_connection.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: computer-use-ootb-internal
3
- Version: 0.0.178
3
+ Version: 0.0.179
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.178"
7
+ version = "0.0.179"
8
8
  description = "Computer Use OOTB"
9
9
  authors = [{ name = "Siyuan Hu", email = "siyuan.hu.sg@gmail.com" }]
10
10
  requires-python = ">=3.11"
@@ -559,7 +559,7 @@ def process_input():
559
559
  stop_msg = f"Task '{shared_state.task}' was stopped. Ready for new tasks."
560
560
  final_message = {"role": "assistant", "content": stop_msg, "type": "text", "action_type": ""}
561
561
  else:
562
- complete_msg = f"Task '{shared_state.task}' completed. Thanks for using Teachmode-OOTB."
562
+ complete_msg = f"Task '{shared_state.task}' completed. Thanks for using Marbot Run."
563
563
  final_message = {"role": "assistant", "content": complete_msg, "type": "text", "action_type": ""}
564
564
 
565
565
  shared_state.chatbot_messages.append(final_message)
@@ -139,8 +139,10 @@ def simple_teachmode_sampling_loop(
139
139
  if step_action.get("action") == "STOP":
140
140
  final_sc, final_sc_path = get_screenshot_external_cmd(selected_screen=selected_screen)
141
141
 
142
+ with open(final_sc_path, "rb") as image_file:
143
+ final_sc_base64 = base64.b64encode(image_file.read()).decode('utf-8')
142
144
  yield {"role": "assistant", "content": "Task completed. Final screenshot:", "type": "text"}
143
- yield {"role": "assistant", "content": final_sc_path, "type": "image"}
145
+ yield {"role": "assistant", "content": final_sc_base64, "type": "image_base64", "action_type": "screenshot"}
144
146
 
145
147
  # reset action history
146
148
  action_history = []
@@ -54,5 +54,43 @@ async def test_animations():
54
54
 
55
55
  print("Test completed")
56
56
 
57
+
58
+ def test_pyautogui():
59
+
60
+ pyautogui.click(x=2820, y=208)
61
+ time.sleep(3)
62
+
63
+ pyautogui.moveTo(x=3491, y=381, duration=0.4)
64
+ time.sleep(0.1)
65
+ pyautogui.click(x=3491, y=381)
66
+ time.sleep(0.5)
67
+
68
+ pyautogui.typewrite("Add a fasinating 'fly wheel' transition to my presentation at the slide 6. ", interval=0.03)
69
+ time.sleep(0.5)
70
+ pyautogui.typewrite("Preview it when you're done.", interval=0.03)
71
+ time.sleep(2)
72
+
73
+ pyautogui.moveTo(x=4086, y=450, duration=0.4)
74
+ time.sleep(0.5)
75
+ pyautogui.click(x=4086, y=450)
76
+
77
+ time.sleep(6)
78
+
79
+ pyautogui.moveTo(x=3258, y=1033, duration=0.4)
80
+ time.sleep(0.1)
81
+ pyautogui.click(x=3258, y=1033)
82
+
83
+ time.sleep(3)
84
+
85
+ pyautogui.moveTo(x=2826, y=63, duration=0.4)
86
+ time.sleep(0.1)
87
+ pyautogui.click(x=2826, y=63)
88
+
89
+ pyautogui.moveTo(x=0, y=0)
90
+
91
+
92
+
93
+
57
94
  if __name__ == "__main__":
58
- asyncio.run(test_animations())
95
+ # asyncio.run(test_animations()) w
96
+ test_pyautogui()