computer-use-ootb-internal 0.0.176__py3-none-any.whl → 0.0.178__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/app_teachmode.py +4 -1
- computer_use_ootb_internal/computer_use_demo/executor/teachmode_executor.py +7 -0
- {computer_use_ootb_internal-0.0.176.dist-info → computer_use_ootb_internal-0.0.178.dist-info}/METADATA +1 -1
- {computer_use_ootb_internal-0.0.176.dist-info → computer_use_ootb_internal-0.0.178.dist-info}/RECORD +6 -6
- {computer_use_ootb_internal-0.0.176.dist-info → computer_use_ootb_internal-0.0.178.dist-info}/WHEEL +0 -0
- {computer_use_ootb_internal-0.0.176.dist-info → computer_use_ootb_internal-0.0.178.dist-info}/entry_points.txt +0 -0
@@ -135,6 +135,7 @@ class SharedState:
|
|
135
135
|
self.stop_event = threading.Event()
|
136
136
|
# Add a reference to the processing thread
|
137
137
|
self.processing_thread = None
|
138
|
+
self.max_steps = getattr(args, 'max_steps', 50)
|
138
139
|
|
139
140
|
shared_state = None
|
140
141
|
rate_limiter = RateLimiter(interval_seconds=2)
|
@@ -236,7 +237,8 @@ async def update_parameters(request: Request):
|
|
236
237
|
shared_state.trace_id = getattr(shared_state.args, 'trace_id', "build_scroll_combat")
|
237
238
|
shared_state.api_keys = getattr(shared_state.args, 'api_keys', "sk-proj-1234567890")
|
238
239
|
shared_state.server_url = getattr(shared_state.args, 'server_url', "http://ec2-44-234-43-86.us-west-2.compute.amazonaws.com")
|
239
|
-
|
240
|
+
shared_state.max_steps = getattr(shared_state.args, 'max_steps', 50)
|
241
|
+
|
240
242
|
log_ootb_request(shared_state.server_url, "update_params", data)
|
241
243
|
|
242
244
|
# Call the (now dynamic) preparation function here, after parameters are updated
|
@@ -507,6 +509,7 @@ def process_input():
|
|
507
509
|
api_keys=shared_state.api_keys,
|
508
510
|
server_url=shared_state.server_url,
|
509
511
|
full_screen_game_mode=shared_state.full_screen_game_mode,
|
512
|
+
max_steps=shared_state.max_steps,
|
510
513
|
)
|
511
514
|
|
512
515
|
# Process messages from the sampling loop
|
@@ -25,6 +25,7 @@ class TeachmodeExecutor:
|
|
25
25
|
self.supported_action_type={
|
26
26
|
# "showui_action": "anthropic_tool_action"
|
27
27
|
"CLICK": 'key', # TBD
|
28
|
+
"RIGHT_CLICK": 'key', # TBD
|
28
29
|
"INPUT": "key",
|
29
30
|
"MOVE": "key",
|
30
31
|
"HOVER": "key",
|
@@ -139,6 +140,12 @@ class TeachmodeExecutor:
|
|
139
140
|
refined_output.append({"action": "mouse_move", "text": None, "coordinate": tuple(action_item["position"])})
|
140
141
|
refined_output.append({"action": "left_click", "text": None, "coordinate": tuple(action_item["position"])})
|
141
142
|
|
143
|
+
elif action_item["action"] == "RIGHT_CLICK": # 1. click -> mouse_move + left_click
|
144
|
+
x, y = action_item["position"]
|
145
|
+
action_item["position"] = (int(x), int(y))
|
146
|
+
refined_output.append({"action": "mouse_move", "text": None, "coordinate": tuple(action_item["position"])})
|
147
|
+
refined_output.append({"action": "right_click", "text": None, "coordinate": tuple(action_item["position"])})
|
148
|
+
|
142
149
|
elif action_item["action"] == "INPUT": # 2. input -> type
|
143
150
|
if "text" in action_item:
|
144
151
|
refined_output.append({"action": "type", "text": action_item["text"], "coordinate": None})
|
{computer_use_ootb_internal-0.0.176.dist-info → computer_use_ootb_internal-0.0.178.dist-info}/RECORD
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
computer_use_ootb_internal/README.md,sha256=FxpW95lyub2iX73ZDfK6ML7SdEKg060H5I6Grub7li4,31
|
2
2
|
computer_use_ootb_internal/__init__.py,sha256=Nqnn8clbgv-5l0PgxcTOldg8mkMKrFn4TvPL-rYUUGg,1
|
3
|
-
computer_use_ootb_internal/app_teachmode.py,sha256=
|
3
|
+
computer_use_ootb_internal/app_teachmode.py,sha256=qoj_IHSHJ4n4-uwEYGv675bf6Gw8IwNA10PpXD0A7Dw,27762
|
4
4
|
computer_use_ootb_internal/dependency_check.py,sha256=y8RMEP6RXQzTgU1MS_1piBLtz4J-Hfn9RjUZg59dyvo,1333
|
5
5
|
computer_use_ootb_internal/guard_service.py,sha256=ThF_Y8FcBQseXo6-5hIh_Z4cISkCLLEgjWrR2BIV-C0,50940
|
6
6
|
computer_use_ootb_internal/requirements-lite.txt,sha256=5DAHomz4A_P2BmTIXNkNqkHbnIF0AyZ4_1XAlb1LaYs,290
|
@@ -11,7 +11,7 @@ computer_use_ootb_internal/test_click_0425.py,sha256=uZtP6DsPVRFonKMYlbe9eHmPY6h
|
|
11
11
|
computer_use_ootb_internal/computer_use_demo/animation/click_animation.py,sha256=tP1gsayFy-CKk10UlrE9RlexwlHWiHQUe5Ogg4vQvSg,3234
|
12
12
|
computer_use_ootb_internal/computer_use_demo/animation/icons8-select-cursor-transparent-96.gif,sha256=4LfwsfFQnREXrNRs32aJU2jO65JXianJoL_8q7-8elg,30966
|
13
13
|
computer_use_ootb_internal/computer_use_demo/animation/test_animation.py,sha256=SOJz2yffXTkjuAHqk0IZLcMriR0KQYTo7W1b8wGyRGY,1222
|
14
|
-
computer_use_ootb_internal/computer_use_demo/executor/teachmode_executor.py,sha256=
|
14
|
+
computer_use_ootb_internal/computer_use_demo/executor/teachmode_executor.py,sha256=7wG3K4s2HkLznXPRER4jOo20qakFA9Iw_tYMg9d3r9s,16154
|
15
15
|
computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/simple_parser/__init__.py,sha256=h2CNeuACklxVpJC65QR8_6AvSybEZLmeO45hY_-lLBs,61
|
16
16
|
computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/simple_parser/gui_capture.py,sha256=CxFJbsSb68ERKH7-C4RaaZy7FIhhzrzGx5qQJ4C37cA,13907
|
17
17
|
computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/simple_parser/utils.py,sha256=OOVxy4Qlbk5q-X9kXFXqt6AmuOMl6FWWqtH269DvJJA,10005
|
@@ -36,7 +36,7 @@ computer_use_ootb_internal/computer_use_demo/tools/screen_capture.py,sha256=L8qf
|
|
36
36
|
computer_use_ootb_internal/preparation/__init__.py,sha256=AgtGHcBpiTkxJjF0xwcs3yyQ6SyUvhL3G0vD2XO-zJw,63
|
37
37
|
computer_use_ootb_internal/preparation/powerpoint_prepare.py,sha256=1je2N_Pedvp2p_o3aQGl2FF4A8R0H9-GK_e3nqkpzzA,3267
|
38
38
|
computer_use_ootb_internal/preparation/star_rail_prepare.py,sha256=RAriQxrv55csBNBm0m8CKyd_RW8k1tXx0kdJAcOpYlg,4734
|
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.178.dist-info/METADATA,sha256=Q59bEW-cWI4xMNLcyJdb_HBGeZd2LD0tw-zAlKwMEoE,910
|
40
|
+
computer_use_ootb_internal-0.0.178.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
41
|
+
computer_use_ootb_internal-0.0.178.dist-info/entry_points.txt,sha256=-AbmawU7IRQuDZihgVMVDrFoY4E6rnXYOUB-5vSeBKs,93
|
42
|
+
computer_use_ootb_internal-0.0.178.dist-info/RECORD,,
|
{computer_use_ootb_internal-0.0.176.dist-info → computer_use_ootb_internal-0.0.178.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|