computer-use-ootb-internal 0.0.106__py3-none-any.whl → 0.0.107__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/executor/teachmode_executor.py +5 -5
- computer_use_ootb_internal/computer_use_demo/tools/computer.py +0 -5
- {computer_use_ootb_internal-0.0.106.dist-info → computer_use_ootb_internal-0.0.107.dist-info}/METADATA +1 -1
- {computer_use_ootb_internal-0.0.106.dist-info → computer_use_ootb_internal-0.0.107.dist-info}/RECORD +6 -6
- {computer_use_ootb_internal-0.0.106.dist-info → computer_use_ootb_internal-0.0.107.dist-info}/WHEEL +0 -0
- {computer_use_ootb_internal-0.0.106.dist-info → computer_use_ootb_internal-0.0.107.dist-info}/entry_points.txt +0 -0
@@ -146,12 +146,12 @@ class TeachmodeExecutor:
|
|
146
146
|
else:
|
147
147
|
raise ValueError(f"Input action {action_item['action']} does not contain 'text' or 'value'.")
|
148
148
|
|
149
|
-
elif action_item["action"]
|
149
|
+
elif action_item["action"] in ["ENTER", "RETURN"] \
|
150
|
+
or (action_item["action"] == "KEY" and action_item["value"] in ["ENTER", "RETURN"]): # 3. enter -> key, enter
|
150
151
|
refined_output.append({"action": "key", "text": "Enter", "coordinate": None})
|
151
152
|
|
152
|
-
elif action_item["action"]
|
153
|
-
or action_item["action"] == "ESCAPE"
|
154
|
-
or (action_item["action"] == "KEY" and action_item["value"] == "ESC"): # 4. enter -> key, enter
|
153
|
+
elif action_item["action"] in ["ESCAPE", "ESC"] \
|
154
|
+
or (action_item["action"] == "KEY" and action_item["value"] in ["ESC", "ESCAPE"]): # 4. enter -> key, enter
|
155
155
|
refined_output.append({"action": "key", "text": "Escape", "coordinate": None})
|
156
156
|
|
157
157
|
elif action_item["action"] == "HOVER" or action_item["action"] == "MOVE": # 5. hover -> mouse_move
|
@@ -177,7 +177,7 @@ class TeachmodeExecutor:
|
|
177
177
|
refined_output.append({"action": "mouse_move", "text": None, "coordinate": tuple(action_item["position"])})
|
178
178
|
refined_output.append({"action": "left_press", "text": None, "coordinate": None})
|
179
179
|
|
180
|
-
elif action_item["action"]
|
180
|
+
elif action_item["action"] in ["HOTKEY", "KEY"]: # 8. hotkey
|
181
181
|
refined_output.append({"action": "key", "text": action_item["value"], "coordinate": None})
|
182
182
|
|
183
183
|
elif action_item["action"] == "DRAG": # 9. drag
|
@@ -615,11 +615,6 @@ class ComputerTool(BaseAnthropicTool):
|
|
615
615
|
# Adjust for different coordinate system
|
616
616
|
return int(loc.x), int(self.height - loc.y)
|
617
617
|
|
618
|
-
def map_keys(self, text: str):
|
619
|
-
"""Map text to cliclick key codes if necessary."""
|
620
|
-
# For simplicity, return text as is
|
621
|
-
# Implement mapping if special keys are needed
|
622
|
-
return text
|
623
618
|
|
624
619
|
|
625
620
|
if __name__ == "__main__":
|
{computer_use_ootb_internal-0.0.106.dist-info → computer_use_ootb_internal-0.0.107.dist-info}/RECORD
RENAMED
@@ -7,7 +7,7 @@ computer_use_ootb_internal/run_teachmode_ootb_args.py,sha256=NZ6EcSIw8mXKFLWwaqA
|
|
7
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
|
-
computer_use_ootb_internal/computer_use_demo/executor/teachmode_executor.py,sha256=
|
10
|
+
computer_use_ootb_internal/computer_use_demo/executor/teachmode_executor.py,sha256=3IwTm99UUzQ7NLpt4r2g2iiluXWzdn8n4hCwy2XWP78,16426
|
11
11
|
computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/simple_parser/__init__.py,sha256=h2CNeuACklxVpJC65QR8_6AvSybEZLmeO45hY_-lLBs,61
|
12
12
|
computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/simple_parser/gui_capture.py,sha256=CxFJbsSb68ERKH7-C4RaaZy7FIhhzrzGx5qQJ4C37cA,13907
|
13
13
|
computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/simple_parser/gui_parser.py,sha256=KSTJ0cMwh3ahUMzHRaDgA2sVNUL4MNlF7qEBGN3G0SI,28993
|
@@ -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=nGHrwF60nExw6pVhs_gThr5pSObVv_yE-RYPbkGPG6U,25375
|
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.
|
40
|
-
computer_use_ootb_internal-0.0.
|
41
|
-
computer_use_ootb_internal-0.0.
|
42
|
-
computer_use_ootb_internal-0.0.
|
39
|
+
computer_use_ootb_internal-0.0.107.dist-info/METADATA,sha256=o7nhTe06oTMzWuSueoiLI5F6VZq2FobcuNue4QR6dQw,910
|
40
|
+
computer_use_ootb_internal-0.0.107.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
41
|
+
computer_use_ootb_internal-0.0.107.dist-info/entry_points.txt,sha256=-AbmawU7IRQuDZihgVMVDrFoY4E6rnXYOUB-5vSeBKs,93
|
42
|
+
computer_use_ootb_internal-0.0.107.dist-info/RECORD,,
|
{computer_use_ootb_internal-0.0.106.dist-info → computer_use_ootb_internal-0.0.107.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|