computer-use-ootb-internal 0.0.95__py3-none-any.whl → 0.0.95.post1__py3-none-any.whl

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.
@@ -355,7 +355,7 @@ class ComputerTool(BaseAnthropicTool):
355
355
  if action == "left_click_windll":
356
356
  if coordinate is None:
357
357
  x, y = pyautogui.position()
358
- x, y = self.scale_coordinates(ScalingSource.COMPUTER, x, y)
358
+ # x, y = self.scale_coordinates(ScalingSource.COMPUTER, x, y)
359
359
  show_click(x, y)
360
360
  self.marbot_auto_gui.click()
361
361
  else:
@@ -366,11 +366,12 @@ class ComputerTool(BaseAnthropicTool):
366
366
  elif action == "mouse_move_windll":
367
367
  if coordinate is None:
368
368
  raise ToolError(f"coordinate is required for {action}")
369
+ x0, y0 = pyautogui.position()
370
+ # x0, y0 = self.scale_coordinates(ScalingSource.COMPUTER, x0, y0)
369
371
  x1 = coordinate[0]+self.offset_x
370
372
  y1 = coordinate[1]+self.offset_y
373
+
371
374
  self.marbot_auto_gui.moveTo(x=x1, y=y1)
372
- x0, y0 = pyautogui.position()
373
- x0, y0 = self.scale_coordinates(ScalingSource.COMPUTER, x0, y0)
374
375
  show_move_to(x0, y0, x1, y1, duration_ms=2000)
375
376
 
376
377
  # elif action == "right_click_windll":
@@ -611,4 +612,5 @@ class ComputerTool(BaseAnthropicTool):
611
612
  if __name__ == "__main__":
612
613
  computer = ComputerTool()
613
614
  # test left_click_windll
614
- asyncio.run(computer(action="left_click_windll", coordinate=(500, 500)))
615
+ # asyncio.run(computer(action="left_click_windll", coordinate=(500, 500)))
616
+ asyncio.run(computer(action="mouse_move_windll", coordinate=(500, 500)))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: computer-use-ootb-internal
3
- Version: 0.0.95
3
+ Version: 0.0.95.post1
4
4
  Summary: Computer Use OOTB
5
5
  Author-email: Siyuan Hu <siyuan.hu.sg@gmail.com>
6
6
  Requires-Python: >=3.11
@@ -33,12 +33,12 @@ computer_use_ootb_internal/computer_use_demo/tools/base.py,sha256=QDqpuuKlhUKJT2
33
33
  computer_use_ootb_internal/computer_use_demo/tools/bash.py,sha256=rHetQ80_v-TTi-1oxIA7ncFEwJxFTh8FJCErIoZbGeY,4236
34
34
  computer_use_ootb_internal/computer_use_demo/tools/collection.py,sha256=8RzHLobL44_Jjt8ltXS6I8XJlEAQOfc75dmnDUaHE-8,922
35
35
  computer_use_ootb_internal/computer_use_demo/tools/colorful_text.py,sha256=cvlmnhAImDTwoRRwhT5au7mNFhfAD7ZfeoDEVdVzDKw,892
36
- computer_use_ootb_internal/computer_use_demo/tools/computer.py,sha256=50E2Cw_u1YSt69X61D_KtTR7JwkdkA1sJ45EqVtoCXQ,25080
36
+ computer_use_ootb_internal/computer_use_demo/tools/computer.py,sha256=eXH6-h9YEo-1sSkQNG6Ld43aDm0Ip-ioYNyF1Q60Jd0,25164
37
37
  computer_use_ootb_internal/computer_use_demo/tools/computer_marbot.py,sha256=zZuWz9ArfP3Zss-afnscrPkgCtB5UWbCy7HwAOvO2bo,5970
38
38
  computer_use_ootb_internal/computer_use_demo/tools/edit.py,sha256=b0PwUitxckHCQqFP3ZwlthWdqNkn7WETeTHeB6-o98c,11486
39
39
  computer_use_ootb_internal/computer_use_demo/tools/run.py,sha256=xhXdnBK1di9muaO44CEirL9hpGy3NmKbjfMpyeVmn8Y,1595
40
40
  computer_use_ootb_internal/computer_use_demo/tools/screen_capture.py,sha256=L8qfvtUkPPQGt92N-2Zfw5ZTDBzLsDps39uMnX3_uSA,6857
41
- computer_use_ootb_internal-0.0.95.dist-info/METADATA,sha256=In4xLXiIWQT7NLzoVcw39mEQXscnne7yOW1VuLa45zc,886
42
- computer_use_ootb_internal-0.0.95.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
43
- computer_use_ootb_internal-0.0.95.dist-info/entry_points.txt,sha256=-AbmawU7IRQuDZihgVMVDrFoY4E6rnXYOUB-5vSeBKs,93
44
- computer_use_ootb_internal-0.0.95.dist-info/RECORD,,
41
+ computer_use_ootb_internal-0.0.95.post1.dist-info/METADATA,sha256=3jhuyx2pMDfcER-4rrRsjMYbru0ZmJz8xVEf4d7wfc0,892
42
+ computer_use_ootb_internal-0.0.95.post1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
43
+ computer_use_ootb_internal-0.0.95.post1.dist-info/entry_points.txt,sha256=-AbmawU7IRQuDZihgVMVDrFoY4E6rnXYOUB-5vSeBKs,93
44
+ computer_use_ootb_internal-0.0.95.post1.dist-info/RECORD,,