computer-use-ootb-internal 0.0.114__py3-none-any.whl → 0.0.116__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/guard_service.py +1 -1
- computer_use_ootb_internal/service_manager.py +21 -11
- {computer_use_ootb_internal-0.0.114.dist-info → computer_use_ootb_internal-0.0.116.dist-info}/METADATA +1 -1
- {computer_use_ootb_internal-0.0.114.dist-info → computer_use_ootb_internal-0.0.116.dist-info}/RECORD +6 -6
- {computer_use_ootb_internal-0.0.114.dist-info → computer_use_ootb_internal-0.0.116.dist-info}/WHEEL +0 -0
- {computer_use_ootb_internal-0.0.114.dist-info → computer_use_ootb_internal-0.0.116.dist-info}/entry_points.txt +0 -0
@@ -31,7 +31,7 @@ _PACKAGE_NAME = "computer-use-ootb-internal"
|
|
31
31
|
_OOTB_MODULE = "computer_use_ootb_internal.app_teachmode"
|
32
32
|
# --- Server POST Configuration ---
|
33
33
|
_LISTEN_HOST = "0.0.0.0" # Listen on all interfaces
|
34
|
-
_LISTEN_PORT =
|
34
|
+
_LISTEN_PORT = 14000 # Port for server to POST commands TO
|
35
35
|
# _SHARED_SECRET = "YOUR_SECRET_HERE" # !! REMOVED !! - No secret check implemented now
|
36
36
|
# --- End Server POST Configuration ---
|
37
37
|
_SERVER_STATUS_REPORT_URL = "http://52.160.105.102:7000/api/guard/status" # URL to POST status back TO
|
@@ -107,19 +107,29 @@ def run_service_command(command_args, check_errors=True):
|
|
107
107
|
|
108
108
|
def install_and_start():
|
109
109
|
"""Installs and starts the Guard Service."""
|
110
|
-
print(f"Attempting to install
|
111
|
-
#
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
110
|
+
print(f"Attempting to install service: '{_SERVICE_NAME}' ('{_SERVICE_DISPLAY_NAME}')")
|
111
|
+
# Call 'install' command first.
|
112
|
+
# We pass check_errors=True to stop if installation fails fundamentally.
|
113
|
+
install_success = run_service_command(['--startup', 'auto', 'install'], check_errors=True)
|
114
|
+
|
115
|
+
if install_success:
|
116
|
+
# Note: Even if install_success is True, pywin32 might have printed internal errors
|
117
|
+
# like 'service already installed'. We proceed to start anyway in that case.
|
118
|
+
print(f"\nInstallation command finished. Attempting to start service: '{_SERVICE_NAME}' (waiting a few seconds first)")
|
119
|
+
time.sleep(3) # Give SCM time to register the install/update
|
120
|
+
start_success = run_service_command(['start'], check_errors=True)
|
121
|
+
|
122
|
+
if start_success:
|
123
|
+
# Similar caveat: start might succeed according to subprocess, but pywin32 could print internal errors.
|
124
|
+
print(f"\nService '{_SERVICE_NAME}' install command executed and start command executed.")
|
125
|
+
print(f"Please verify service status in 'services.msc' and check logs.")
|
117
126
|
else:
|
118
|
-
|
119
|
-
print(f"
|
120
|
-
print(f"
|
127
|
+
# This path is taken if run_service_command returned False (subprocess error occurred)
|
128
|
+
print(f"\nService '{_SERVICE_NAME}' installed/updated but the 'start' command failed with an error.", file=sys.stderr)
|
129
|
+
print(f" Check output above, service logs ('C:\ProgramData\OOTBGuardService\guard_post_mode.log'), or Windows Event Viewer.", file=sys.stderr)
|
121
130
|
else:
|
122
|
-
|
131
|
+
# This path is taken if the initial 'install' command failed critically (subprocess error)
|
132
|
+
print(f"\nService '{_SERVICE_NAME}' installation failed critically. See errors above.", file=sys.stderr)
|
123
133
|
|
124
134
|
|
125
135
|
def stop_and_remove():
|
{computer_use_ootb_internal-0.0.114.dist-info → computer_use_ootb_internal-0.0.116.dist-info}/RECORD
RENAMED
@@ -3,10 +3,10 @@ computer_use_ootb_internal/__init__.py,sha256=Nqnn8clbgv-5l0PgxcTOldg8mkMKrFn4Tv
|
|
3
3
|
computer_use_ootb_internal/app_teachmode.py,sha256=U0vHAEHeDMDioYatLQkzesT1Hy0aI6kKjhAlV86zxfc,17902
|
4
4
|
computer_use_ootb_internal/app_teachmode_gradio.py,sha256=cmFpBrkdlZxOQADWveVdIaaNqaBD8IVs-xNLJogU7F8,7909
|
5
5
|
computer_use_ootb_internal/dependency_check.py,sha256=y8RMEP6RXQzTgU1MS_1piBLtz4J-Hfn9RjUZg59dyvo,1333
|
6
|
-
computer_use_ootb_internal/guard_service.py,sha256=
|
6
|
+
computer_use_ootb_internal/guard_service.py,sha256=_tPhlciqXmtWViOeZSsiNhYdBsvqrN9yoFhI9Zojc64,22575
|
7
7
|
computer_use_ootb_internal/requirements-lite.txt,sha256=5DAHomz4A_P2BmTIXNkNqkHbnIF0AyZ4_1XAlb1LaYs,290
|
8
8
|
computer_use_ootb_internal/run_teachmode_ootb_args.py,sha256=7Dj0iY4GG7P03tRKYJ2x9Yvt-PE-b7uyjCAed3SaF3Y,7086
|
9
|
-
computer_use_ootb_internal/service_manager.py,sha256=
|
9
|
+
computer_use_ootb_internal/service_manager.py,sha256=xbLIxQ4jzMr8AdZdxKw-QcAGm2Y86vudDzSf3hGjOM4,7595
|
10
10
|
computer_use_ootb_internal/computer_use_demo/animation/click_animation.py,sha256=tP1gsayFy-CKk10UlrE9RlexwlHWiHQUe5Ogg4vQvSg,3234
|
11
11
|
computer_use_ootb_internal/computer_use_demo/animation/icons8-select-cursor-transparent-96.gif,sha256=4LfwsfFQnREXrNRs32aJU2jO65JXianJoL_8q7-8elg,30966
|
12
12
|
computer_use_ootb_internal/computer_use_demo/animation/test_animation.py,sha256=2R1u98OLKYalSZ5nt5vvyZ71FL5R5vLv-n8zM8jVdV8,1183
|
@@ -34,7 +34,7 @@ computer_use_ootb_internal/computer_use_demo/tools/run.py,sha256=xhXdnBK1di9muaO
|
|
34
34
|
computer_use_ootb_internal/computer_use_demo/tools/screen_capture.py,sha256=L8qfvtUkPPQGt92N-2Zfw5ZTDBzLsDps39uMnX3_uSA,6857
|
35
35
|
computer_use_ootb_internal/preparation/__init__.py,sha256=AgtGHcBpiTkxJjF0xwcs3yyQ6SyUvhL3G0vD2XO-zJw,63
|
36
36
|
computer_use_ootb_internal/preparation/star_rail_prepare.py,sha256=s1VWszcTnJAKxqCHFlaOEwPkqVSrkiFx_yKpWSnSbHs,2649
|
37
|
-
computer_use_ootb_internal-0.0.
|
38
|
-
computer_use_ootb_internal-0.0.
|
39
|
-
computer_use_ootb_internal-0.0.
|
40
|
-
computer_use_ootb_internal-0.0.
|
37
|
+
computer_use_ootb_internal-0.0.116.dist-info/METADATA,sha256=G0NAawsykkNRak5u6LkuMy95KGNa1SJhVm1nKhmU-XM,1048
|
38
|
+
computer_use_ootb_internal-0.0.116.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
39
|
+
computer_use_ootb_internal-0.0.116.dist-info/entry_points.txt,sha256=bXfyAU_qq-G1EiEgAQEioXvgEdRCFxaTooqdDD9Y4OA,258
|
40
|
+
computer_use_ootb_internal-0.0.116.dist-info/RECORD,,
|
{computer_use_ootb_internal-0.0.114.dist-info → computer_use_ootb_internal-0.0.116.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|