computer-use-ootb-internal 0.0.103__py3-none-any.whl → 0.0.103.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.
- computer_use_ootb_internal/computer_use_demo/animation/click_animation.py +7 -2
- computer_use_ootb_internal/computer_use_demo/tools/computer.py +5 -2
- computer_use_ootb_internal/run_teachmode_ootb_args.py +1 -0
- {computer_use_ootb_internal-0.0.103.dist-info → computer_use_ootb_internal-0.0.103.post1.dist-info}/METADATA +1 -1
- {computer_use_ootb_internal-0.0.103.dist-info → computer_use_ootb_internal-0.0.103.post1.dist-info}/RECORD +7 -7
- {computer_use_ootb_internal-0.0.103.dist-info → computer_use_ootb_internal-0.0.103.post1.dist-info}/WHEEL +0 -0
- {computer_use_ootb_internal-0.0.103.dist-info → computer_use_ootb_internal-0.0.103.post1.dist-info}/entry_points.txt +0 -0
@@ -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
|
-
|
81
|
-
|
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(
|
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")
|
@@ -3,8 +3,8 @@ computer_use_ootb_internal/app_teachmode.py,sha256=zmUPvFjqdhysnN1bD2QQhaAKONnAt
|
|
3
3
|
computer_use_ootb_internal/app_teachmode_gradio.py,sha256=zAw-n3s20j1Jr0S4TzXHwllKV6APJ8HEHB1KqBuzriY,7907
|
4
4
|
computer_use_ootb_internal/dependency_check.py,sha256=y8RMEP6RXQzTgU1MS_1piBLtz4J-Hfn9RjUZg59dyvo,1333
|
5
5
|
computer_use_ootb_internal/requirements-lite.txt,sha256=5DAHomz4A_P2BmTIXNkNqkHbnIF0AyZ4_1XAlb1LaYs,290
|
6
|
-
computer_use_ootb_internal/run_teachmode_ootb_args.py,sha256=
|
7
|
-
computer_use_ootb_internal/computer_use_demo/animation/click_animation.py,sha256=
|
6
|
+
computer_use_ootb_internal/run_teachmode_ootb_args.py,sha256=NZ6EcSIw8mXKFLWwaqANNyMyO3Vz5SS7r5irCJyyOSM,6742
|
7
|
+
computer_use_ootb_internal/computer_use_demo/animation/click_animation.py,sha256=99Ehm7HKXCYqLhE3KgdyRcilF3K4dMycKZ14l-CB3_I,3235
|
8
8
|
computer_use_ootb_internal/computer_use_demo/animation/icons8-select-cursor-transparent-96.gif,sha256=4LfwsfFQnREXrNRs32aJU2jO65JXianJoL_8q7-8elg,30966
|
9
9
|
computer_use_ootb_internal/computer_use_demo/animation/test_animation.py,sha256=SOJz2yffXTkjuAHqk0IZLcMriR0KQYTo7W1b8wGyRGY,1222
|
10
10
|
computer_use_ootb_internal/computer_use_demo/executor/teachmode_executor.py,sha256=Rr_I0Uk8hsqTmq3Fr3KOtjkXTqSb4pkNxmutENbv8dc,16368
|
@@ -31,12 +31,12 @@ computer_use_ootb_internal/computer_use_demo/tools/base.py,sha256=QDqpuuKlhUKJT2
|
|
31
31
|
computer_use_ootb_internal/computer_use_demo/tools/bash.py,sha256=rHetQ80_v-TTi-1oxIA7ncFEwJxFTh8FJCErIoZbGeY,4236
|
32
32
|
computer_use_ootb_internal/computer_use_demo/tools/collection.py,sha256=8RzHLobL44_Jjt8ltXS6I8XJlEAQOfc75dmnDUaHE-8,922
|
33
33
|
computer_use_ootb_internal/computer_use_demo/tools/colorful_text.py,sha256=cvlmnhAImDTwoRRwhT5au7mNFhfAD7ZfeoDEVdVzDKw,892
|
34
|
-
computer_use_ootb_internal/computer_use_demo/tools/computer.py,sha256=
|
34
|
+
computer_use_ootb_internal/computer_use_demo/tools/computer.py,sha256=tLI1CNd9059-TKjxWXDpUhaORZayRStz4R3X9oPubxU,25588
|
35
35
|
computer_use_ootb_internal/computer_use_demo/tools/computer_marbot.py,sha256=zZuWz9ArfP3Zss-afnscrPkgCtB5UWbCy7HwAOvO2bo,5970
|
36
36
|
computer_use_ootb_internal/computer_use_demo/tools/edit.py,sha256=b0PwUitxckHCQqFP3ZwlthWdqNkn7WETeTHeB6-o98c,11486
|
37
37
|
computer_use_ootb_internal/computer_use_demo/tools/run.py,sha256=xhXdnBK1di9muaO44CEirL9hpGy3NmKbjfMpyeVmn8Y,1595
|
38
38
|
computer_use_ootb_internal/computer_use_demo/tools/screen_capture.py,sha256=L8qfvtUkPPQGt92N-2Zfw5ZTDBzLsDps39uMnX3_uSA,6857
|
39
|
-
computer_use_ootb_internal-0.0.103.dist-info/METADATA,sha256=
|
40
|
-
computer_use_ootb_internal-0.0.103.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
41
|
-
computer_use_ootb_internal-0.0.103.dist-info/entry_points.txt,sha256=-AbmawU7IRQuDZihgVMVDrFoY4E6rnXYOUB-5vSeBKs,93
|
42
|
-
computer_use_ootb_internal-0.0.103.dist-info/RECORD,,
|
39
|
+
computer_use_ootb_internal-0.0.103.post1.dist-info/METADATA,sha256=roOkPTIwYNY4cfa6DMnAuAtq4VZdTJK-qkHnQofthW8,916
|
40
|
+
computer_use_ootb_internal-0.0.103.post1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
41
|
+
computer_use_ootb_internal-0.0.103.post1.dist-info/entry_points.txt,sha256=-AbmawU7IRQuDZihgVMVDrFoY4E6rnXYOUB-5vSeBKs,93
|
42
|
+
computer_use_ootb_internal-0.0.103.post1.dist-info/RECORD,,
|
File without changes
|
File without changes
|