computer-use-ootb-internal 0.0.103__tar.gz → 0.0.103.post1__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.103 → computer_use_ootb_internal-0.0.103.post1}/PKG-INFO +1 -1
  2. {computer_use_ootb_internal-0.0.103 → computer_use_ootb_internal-0.0.103.post1}/pyproject.toml +1 -1
  3. {computer_use_ootb_internal-0.0.103 → computer_use_ootb_internal-0.0.103.post1}/src/computer_use_ootb_internal/computer_use_demo/animation/click_animation.py +7 -2
  4. {computer_use_ootb_internal-0.0.103 → computer_use_ootb_internal-0.0.103.post1}/src/computer_use_ootb_internal/computer_use_demo/tools/computer.py +5 -2
  5. {computer_use_ootb_internal-0.0.103 → computer_use_ootb_internal-0.0.103.post1}/src/computer_use_ootb_internal/run_teachmode_ootb_args.py +1 -0
  6. {computer_use_ootb_internal-0.0.103 → computer_use_ootb_internal-0.0.103.post1}/.gitignore +0 -0
  7. {computer_use_ootb_internal-0.0.103 → computer_use_ootb_internal-0.0.103.post1}/src/computer_use_ootb_internal/README.md +0 -0
  8. {computer_use_ootb_internal-0.0.103 → computer_use_ootb_internal-0.0.103.post1}/src/computer_use_ootb_internal/app_teachmode.py +0 -0
  9. {computer_use_ootb_internal-0.0.103 → computer_use_ootb_internal-0.0.103.post1}/src/computer_use_ootb_internal/app_teachmode_gradio.py +0 -0
  10. {computer_use_ootb_internal-0.0.103 → computer_use_ootb_internal-0.0.103.post1}/src/computer_use_ootb_internal/computer_use_demo/animation/icons8-select-cursor-transparent-96.gif +0 -0
  11. {computer_use_ootb_internal-0.0.103 → computer_use_ootb_internal-0.0.103.post1}/src/computer_use_ootb_internal/computer_use_demo/animation/test_animation.py +0 -0
  12. {computer_use_ootb_internal-0.0.103 → computer_use_ootb_internal-0.0.103.post1}/src/computer_use_ootb_internal/computer_use_demo/executor/teachmode_executor.py +0 -0
  13. {computer_use_ootb_internal-0.0.103 → computer_use_ootb_internal-0.0.103.post1}/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.103 → computer_use_ootb_internal-0.0.103.post1}/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.103 → computer_use_ootb_internal-0.0.103.post1}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/simple_parser/gui_parser.py +0 -0
  16. {computer_use_ootb_internal-0.0.103 → computer_use_ootb_internal-0.0.103.post1}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/simple_parser/icon_detection/icon_detection.py +0 -0
  17. {computer_use_ootb_internal-0.0.103 → computer_use_ootb_internal-0.0.103.post1}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/simple_parser/panel_recognition/llm_panel_recognize.py +0 -0
  18. {computer_use_ootb_internal-0.0.103 → computer_use_ootb_internal-0.0.103.post1}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/simple_parser/test_capture.py +0 -0
  19. {computer_use_ootb_internal-0.0.103 → computer_use_ootb_internal-0.0.103.post1}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/simple_parser/uia_parser.py +0 -0
  20. {computer_use_ootb_internal-0.0.103 → computer_use_ootb_internal-0.0.103.post1}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/simple_parser/utils.py +0 -0
  21. {computer_use_ootb_internal-0.0.103 → computer_use_ootb_internal-0.0.103.post1}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/uia_tools/__init__.py +0 -0
  22. {computer_use_ootb_internal-0.0.103 → computer_use_ootb_internal-0.0.103.post1}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/uia_tools/screenshot_cli.py +0 -0
  23. {computer_use_ootb_internal-0.0.103 → computer_use_ootb_internal-0.0.103.post1}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/uia_tools/screenshot_service.py +0 -0
  24. {computer_use_ootb_internal-0.0.103 → computer_use_ootb_internal-0.0.103.post1}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/llm_utils.py +0 -0
  25. {computer_use_ootb_internal-0.0.103 → computer_use_ootb_internal-0.0.103.post1}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/oai.py +0 -0
  26. {computer_use_ootb_internal-0.0.103 → computer_use_ootb_internal-0.0.103.post1}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/run_litellm.py +0 -0
  27. {computer_use_ootb_internal-0.0.103 → computer_use_ootb_internal-0.0.103.post1}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/run_llm.py +0 -0
  28. {computer_use_ootb_internal-0.0.103 → computer_use_ootb_internal-0.0.103.post1}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/vlm_utils/__init__.py +0 -0
  29. {computer_use_ootb_internal-0.0.103 → computer_use_ootb_internal-0.0.103.post1}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/vlm_utils/run_vlm.py +0 -0
  30. {computer_use_ootb_internal-0.0.103 → computer_use_ootb_internal-0.0.103.post1}/src/computer_use_ootb_internal/computer_use_demo/tools/__init__.py +0 -0
  31. {computer_use_ootb_internal-0.0.103 → computer_use_ootb_internal-0.0.103.post1}/src/computer_use_ootb_internal/computer_use_demo/tools/aws_request.py +0 -0
  32. {computer_use_ootb_internal-0.0.103 → computer_use_ootb_internal-0.0.103.post1}/src/computer_use_ootb_internal/computer_use_demo/tools/base.py +0 -0
  33. {computer_use_ootb_internal-0.0.103 → computer_use_ootb_internal-0.0.103.post1}/src/computer_use_ootb_internal/computer_use_demo/tools/bash.py +0 -0
  34. {computer_use_ootb_internal-0.0.103 → computer_use_ootb_internal-0.0.103.post1}/src/computer_use_ootb_internal/computer_use_demo/tools/collection.py +0 -0
  35. {computer_use_ootb_internal-0.0.103 → computer_use_ootb_internal-0.0.103.post1}/src/computer_use_ootb_internal/computer_use_demo/tools/colorful_text.py +0 -0
  36. {computer_use_ootb_internal-0.0.103 → computer_use_ootb_internal-0.0.103.post1}/src/computer_use_ootb_internal/computer_use_demo/tools/computer_marbot.py +0 -0
  37. {computer_use_ootb_internal-0.0.103 → computer_use_ootb_internal-0.0.103.post1}/src/computer_use_ootb_internal/computer_use_demo/tools/edit.py +0 -0
  38. {computer_use_ootb_internal-0.0.103 → computer_use_ootb_internal-0.0.103.post1}/src/computer_use_ootb_internal/computer_use_demo/tools/run.py +0 -0
  39. {computer_use_ootb_internal-0.0.103 → computer_use_ootb_internal-0.0.103.post1}/src/computer_use_ootb_internal/computer_use_demo/tools/screen_capture.py +0 -0
  40. {computer_use_ootb_internal-0.0.103 → computer_use_ootb_internal-0.0.103.post1}/src/computer_use_ootb_internal/dependency_check.py +0 -0
  41. {computer_use_ootb_internal-0.0.103 → computer_use_ootb_internal-0.0.103.post1}/src/computer_use_ootb_internal/requirements-lite.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: computer-use-ootb-internal
3
- Version: 0.0.103
3
+ Version: 0.0.103.post1
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.103"
7
+ version = "0.0.103.post1"
8
8
  description = "Computer Use OOTB"
9
9
  authors = [{ name = "Siyuan Hu", email = "siyuan.hu.sg@gmail.com" }]
10
10
  requires-python = ">=3.11"
@@ -77,5 +77,10 @@ def show_move_to(x1: int, y1: int, x2: int, y2: int,
77
77
 
78
78
  if __name__ == "__main__":
79
79
  # from click_anim_async import show_click
80
- show_click(500, 500)
81
- show_move_to(300, 300, 600, 600)
80
+
81
+ import pyautogui
82
+ x, y = pyautogui.position()
83
+
84
+ show_move_to(x, y, 600, 600)
85
+
86
+ show_click(600, 600)
@@ -326,7 +326,7 @@ class ComputerTool(BaseAnthropicTool):
326
326
  return ToolResult(output="Scrolled up")
327
327
 
328
328
  elif action == "wait":
329
- time.sleep(30)
329
+ time.sleep(15)
330
330
  return ToolResult(output="Waited")
331
331
 
332
332
  return ToolResult(output=f"Performed {action}")
@@ -374,9 +374,11 @@ class ComputerTool(BaseAnthropicTool):
374
374
  y = coordinate[1]+self.offset_y
375
375
  show_click(x, y)
376
376
  self.marbot_auto_gui.click(x=x, y=y)
377
+
377
378
  elif action == "mouse_move_windll":
378
379
  if coordinate is None:
379
380
  raise ToolError(f"coordinate is required for {action}")
381
+
380
382
  x0, y0 = pyautogui.position()
381
383
  # x0, y0 = self.scale_coordinates(ScalingSource.COMPUTER, x0, y0)
382
384
  x1 = coordinate[0]+self.offset_x
@@ -624,4 +626,5 @@ if __name__ == "__main__":
624
626
  computer = ComputerTool()
625
627
  # test left_click_windll
626
628
  # asyncio.run(computer(action="left_click_windll", coordinate=(500, 500)))
627
- asyncio.run(computer(action="mouse_move_windll", coordinate=(500, 500)))
629
+ asyncio.run(computer(action="mouse_move_windll", coordinate=(500, 500)))
630
+ asyncio.run(computer(action="left_click_windll", coordinate=(500, 500)))
@@ -112,6 +112,7 @@ def simple_teachmode_sampling_loop(
112
112
 
113
113
  if step_action.get("action") == "STOP":
114
114
  final_sc, final_sc_path = get_screenshot_external_cmd(selected_screen=selected_screen)
115
+ action_history = [] # reset action history
115
116
  break
116
117
 
117
118
  # action_history.append(f"Executing Step: {step_count} - Trajectory Step: {step_traj_idx} - Plan: {step_plan} - Action: {step_action};\n")