computer-use-ootb-internal 0.0.163__tar.gz → 0.0.164__tar.gz
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-0.0.163 → computer_use_ootb_internal-0.0.164}/PKG-INFO +1 -1
- {computer_use_ootb_internal-0.0.163 → computer_use_ootb_internal-0.0.164}/pyproject.toml +1 -1
- {computer_use_ootb_internal-0.0.163 → computer_use_ootb_internal-0.0.164}/src/computer_use_ootb_internal/guard_service.py +8 -17
- {computer_use_ootb_internal-0.0.163 → computer_use_ootb_internal-0.0.164}/.gitignore +0 -0
- {computer_use_ootb_internal-0.0.163 → computer_use_ootb_internal-0.0.164}/src/computer_use_ootb_internal/README.md +0 -0
- {computer_use_ootb_internal-0.0.163 → computer_use_ootb_internal-0.0.164}/src/computer_use_ootb_internal/__init__.py +0 -0
- {computer_use_ootb_internal-0.0.163 → computer_use_ootb_internal-0.0.164}/src/computer_use_ootb_internal/app_teachmode.py +0 -0
- {computer_use_ootb_internal-0.0.163 → computer_use_ootb_internal-0.0.164}/src/computer_use_ootb_internal/computer_use_demo/animation/click_animation.py +0 -0
- {computer_use_ootb_internal-0.0.163 → computer_use_ootb_internal-0.0.164}/src/computer_use_ootb_internal/computer_use_demo/animation/icons8-select-cursor-transparent-96.gif +0 -0
- {computer_use_ootb_internal-0.0.163 → computer_use_ootb_internal-0.0.164}/src/computer_use_ootb_internal/computer_use_demo/animation/test_animation.py +0 -0
- {computer_use_ootb_internal-0.0.163 → computer_use_ootb_internal-0.0.164}/src/computer_use_ootb_internal/computer_use_demo/executor/teachmode_executor.py +0 -0
- {computer_use_ootb_internal-0.0.163 → computer_use_ootb_internal-0.0.164}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/simple_parser/__init__.py +0 -0
- {computer_use_ootb_internal-0.0.163 → computer_use_ootb_internal-0.0.164}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/simple_parser/gui_capture.py +0 -0
- {computer_use_ootb_internal-0.0.163 → computer_use_ootb_internal-0.0.164}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/simple_parser/utils.py +0 -0
- {computer_use_ootb_internal-0.0.163 → computer_use_ootb_internal-0.0.164}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/uia_tools/__init__.py +0 -0
- {computer_use_ootb_internal-0.0.163 → computer_use_ootb_internal-0.0.164}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/uia_tools/screenshot_cli.py +0 -0
- {computer_use_ootb_internal-0.0.163 → computer_use_ootb_internal-0.0.164}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/uia_tools/screenshot_service.py +0 -0
- {computer_use_ootb_internal-0.0.163 → computer_use_ootb_internal-0.0.164}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/llm_utils.py +0 -0
- {computer_use_ootb_internal-0.0.163 → computer_use_ootb_internal-0.0.164}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/oai.py +0 -0
- {computer_use_ootb_internal-0.0.163 → computer_use_ootb_internal-0.0.164}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/run_litellm.py +0 -0
- {computer_use_ootb_internal-0.0.163 → computer_use_ootb_internal-0.0.164}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/run_llm.py +0 -0
- {computer_use_ootb_internal-0.0.163 → computer_use_ootb_internal-0.0.164}/src/computer_use_ootb_internal/computer_use_demo/tools/__init__.py +0 -0
- {computer_use_ootb_internal-0.0.163 → computer_use_ootb_internal-0.0.164}/src/computer_use_ootb_internal/computer_use_demo/tools/aws_request.py +0 -0
- {computer_use_ootb_internal-0.0.163 → computer_use_ootb_internal-0.0.164}/src/computer_use_ootb_internal/computer_use_demo/tools/base.py +0 -0
- {computer_use_ootb_internal-0.0.163 → computer_use_ootb_internal-0.0.164}/src/computer_use_ootb_internal/computer_use_demo/tools/bash.py +0 -0
- {computer_use_ootb_internal-0.0.163 → computer_use_ootb_internal-0.0.164}/src/computer_use_ootb_internal/computer_use_demo/tools/collection.py +0 -0
- {computer_use_ootb_internal-0.0.163 → computer_use_ootb_internal-0.0.164}/src/computer_use_ootb_internal/computer_use_demo/tools/colorful_text.py +0 -0
- {computer_use_ootb_internal-0.0.163 → computer_use_ootb_internal-0.0.164}/src/computer_use_ootb_internal/computer_use_demo/tools/computer.py +0 -0
- {computer_use_ootb_internal-0.0.163 → computer_use_ootb_internal-0.0.164}/src/computer_use_ootb_internal/computer_use_demo/tools/computer_marbot.py +0 -0
- {computer_use_ootb_internal-0.0.163 → computer_use_ootb_internal-0.0.164}/src/computer_use_ootb_internal/computer_use_demo/tools/edit.py +0 -0
- {computer_use_ootb_internal-0.0.163 → computer_use_ootb_internal-0.0.164}/src/computer_use_ootb_internal/computer_use_demo/tools/run.py +0 -0
- {computer_use_ootb_internal-0.0.163 → computer_use_ootb_internal-0.0.164}/src/computer_use_ootb_internal/computer_use_demo/tools/screen_capture.py +0 -0
- {computer_use_ootb_internal-0.0.163 → computer_use_ootb_internal-0.0.164}/src/computer_use_ootb_internal/dependency_check.py +0 -0
- {computer_use_ootb_internal-0.0.163 → computer_use_ootb_internal-0.0.164}/src/computer_use_ootb_internal/launch_ootb_elevated.ps1 +0 -0
- {computer_use_ootb_internal-0.0.163 → computer_use_ootb_internal-0.0.164}/src/computer_use_ootb_internal/preparation/__init__.py +0 -0
- {computer_use_ootb_internal-0.0.163 → computer_use_ootb_internal-0.0.164}/src/computer_use_ootb_internal/preparation/star_rail_prepare.py +0 -0
- {computer_use_ootb_internal-0.0.163 → computer_use_ootb_internal-0.0.164}/src/computer_use_ootb_internal/requirements-lite.txt +0 -0
- {computer_use_ootb_internal-0.0.163 → computer_use_ootb_internal-0.0.164}/src/computer_use_ootb_internal/run_teachmode_ootb_args.py +0 -0
- {computer_use_ootb_internal-0.0.163 → computer_use_ootb_internal-0.0.164}/src/computer_use_ootb_internal/service_manager.py +0 -0
- {computer_use_ootb_internal-0.0.163 → computer_use_ootb_internal-0.0.164}/src/computer_use_ootb_internal/signal_connection.py +0 -0
@@ -709,19 +709,9 @@ class GuardService(win32serviceutil.ServiceFramework):
|
|
709
709
|
|
710
710
|
|
711
711
|
try:
|
712
|
-
# 1. Ensure scheduled task exists (still useful fallback/persistence)
|
713
|
-
try:
|
714
|
-
task_created = self.create_or_update_logon_task(user)
|
715
|
-
task_created_status = "task_success" if task_created else "task_failed"
|
716
|
-
except Exception as task_err:
|
717
|
-
self.log_error(f"Internal trigger: Exception creating/updating task for {user}: {task_err}", exc_info=True)
|
718
|
-
task_created_status = "task_exception"
|
719
|
-
# Don't necessarily fail the whole operation yet
|
720
|
-
|
721
712
|
# 2. Check if user is active
|
722
713
|
active_sessions = {} # Re-check active sessions specifically for this user
|
723
714
|
session_id = None
|
724
|
-
token = None
|
725
715
|
is_active = False
|
726
716
|
try:
|
727
717
|
sessions = win32ts.WTSEnumerateSessions(win32ts.WTS_CURRENT_SERVER_HANDLE)
|
@@ -742,7 +732,7 @@ class GuardService(win32serviceutil.ServiceFramework):
|
|
742
732
|
if not is_active:
|
743
733
|
self.log_info(f"Internal trigger: User '{user}' is not active. Skipping immediate start.")
|
744
734
|
immediate_start_status = "start_skipped_inactive"
|
745
|
-
final_status =
|
735
|
+
final_status = "skipped_inactive" # Simplified status
|
746
736
|
return final_status # Exit early if inactive
|
747
737
|
|
748
738
|
# 3. Check if already running for this active user
|
@@ -844,14 +834,15 @@ class GuardService(win32serviceutil.ServiceFramework):
|
|
844
834
|
immediate_start_status = "start_failed_launch_exception"
|
845
835
|
final_status = "failed_launch_exception"
|
846
836
|
finally:
|
847
|
-
|
848
|
-
|
849
|
-
|
850
|
-
|
851
|
-
|
837
|
+
# Ensure token exists and is not None before attempting to close
|
838
|
+
if 'token' in locals() and token is not None:
|
839
|
+
try:
|
840
|
+
win32api.CloseHandle(token)
|
841
|
+
except: # Ignore errors closing handle
|
842
|
+
pass
|
852
843
|
|
853
844
|
# Combine results (mostly determined by start attempt now)
|
854
|
-
#
|
845
|
+
# Status is now primarily determined by the helper script launch attempt
|
855
846
|
return final_status
|
856
847
|
|
857
848
|
except Exception as e:
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|