computer-use-ootb-internal 0.0.133__tar.gz → 0.0.134__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.133 → computer_use_ootb_internal-0.0.134}/PKG-INFO +1 -1
- {computer_use_ootb_internal-0.0.133 → computer_use_ootb_internal-0.0.134}/pyproject.toml +1 -1
- {computer_use_ootb_internal-0.0.133 → computer_use_ootb_internal-0.0.134}/src/computer_use_ootb_internal/guard_service.py +7 -7
- {computer_use_ootb_internal-0.0.133 → computer_use_ootb_internal-0.0.134}/.gitignore +0 -0
- {computer_use_ootb_internal-0.0.133 → computer_use_ootb_internal-0.0.134}/src/computer_use_ootb_internal/README.md +0 -0
- {computer_use_ootb_internal-0.0.133 → computer_use_ootb_internal-0.0.134}/src/computer_use_ootb_internal/__init__.py +0 -0
- {computer_use_ootb_internal-0.0.133 → computer_use_ootb_internal-0.0.134}/src/computer_use_ootb_internal/app_teachmode.py +0 -0
- {computer_use_ootb_internal-0.0.133 → computer_use_ootb_internal-0.0.134}/src/computer_use_ootb_internal/computer_use_demo/animation/click_animation.py +0 -0
- {computer_use_ootb_internal-0.0.133 → computer_use_ootb_internal-0.0.134}/src/computer_use_ootb_internal/computer_use_demo/animation/icons8-select-cursor-transparent-96.gif +0 -0
- {computer_use_ootb_internal-0.0.133 → computer_use_ootb_internal-0.0.134}/src/computer_use_ootb_internal/computer_use_demo/animation/test_animation.py +0 -0
- {computer_use_ootb_internal-0.0.133 → computer_use_ootb_internal-0.0.134}/src/computer_use_ootb_internal/computer_use_demo/executor/teachmode_executor.py +0 -0
- {computer_use_ootb_internal-0.0.133 → computer_use_ootb_internal-0.0.134}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/simple_parser/__init__.py +0 -0
- {computer_use_ootb_internal-0.0.133 → computer_use_ootb_internal-0.0.134}/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.133 → computer_use_ootb_internal-0.0.134}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/simple_parser/utils.py +0 -0
- {computer_use_ootb_internal-0.0.133 → computer_use_ootb_internal-0.0.134}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/uia_tools/__init__.py +0 -0
- {computer_use_ootb_internal-0.0.133 → computer_use_ootb_internal-0.0.134}/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.133 → computer_use_ootb_internal-0.0.134}/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.133 → computer_use_ootb_internal-0.0.134}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/llm_utils.py +0 -0
- {computer_use_ootb_internal-0.0.133 → computer_use_ootb_internal-0.0.134}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/oai.py +0 -0
- {computer_use_ootb_internal-0.0.133 → computer_use_ootb_internal-0.0.134}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/run_litellm.py +0 -0
- {computer_use_ootb_internal-0.0.133 → computer_use_ootb_internal-0.0.134}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/run_llm.py +0 -0
- {computer_use_ootb_internal-0.0.133 → computer_use_ootb_internal-0.0.134}/src/computer_use_ootb_internal/computer_use_demo/tools/__init__.py +0 -0
- {computer_use_ootb_internal-0.0.133 → computer_use_ootb_internal-0.0.134}/src/computer_use_ootb_internal/computer_use_demo/tools/aws_request.py +0 -0
- {computer_use_ootb_internal-0.0.133 → computer_use_ootb_internal-0.0.134}/src/computer_use_ootb_internal/computer_use_demo/tools/base.py +0 -0
- {computer_use_ootb_internal-0.0.133 → computer_use_ootb_internal-0.0.134}/src/computer_use_ootb_internal/computer_use_demo/tools/bash.py +0 -0
- {computer_use_ootb_internal-0.0.133 → computer_use_ootb_internal-0.0.134}/src/computer_use_ootb_internal/computer_use_demo/tools/collection.py +0 -0
- {computer_use_ootb_internal-0.0.133 → computer_use_ootb_internal-0.0.134}/src/computer_use_ootb_internal/computer_use_demo/tools/colorful_text.py +0 -0
- {computer_use_ootb_internal-0.0.133 → computer_use_ootb_internal-0.0.134}/src/computer_use_ootb_internal/computer_use_demo/tools/computer.py +0 -0
- {computer_use_ootb_internal-0.0.133 → computer_use_ootb_internal-0.0.134}/src/computer_use_ootb_internal/computer_use_demo/tools/computer_marbot.py +0 -0
- {computer_use_ootb_internal-0.0.133 → computer_use_ootb_internal-0.0.134}/src/computer_use_ootb_internal/computer_use_demo/tools/edit.py +0 -0
- {computer_use_ootb_internal-0.0.133 → computer_use_ootb_internal-0.0.134}/src/computer_use_ootb_internal/computer_use_demo/tools/run.py +0 -0
- {computer_use_ootb_internal-0.0.133 → computer_use_ootb_internal-0.0.134}/src/computer_use_ootb_internal/computer_use_demo/tools/screen_capture.py +0 -0
- {computer_use_ootb_internal-0.0.133 → computer_use_ootb_internal-0.0.134}/src/computer_use_ootb_internal/dependency_check.py +0 -0
- {computer_use_ootb_internal-0.0.133 → computer_use_ootb_internal-0.0.134}/src/computer_use_ootb_internal/preparation/__init__.py +0 -0
- {computer_use_ootb_internal-0.0.133 → computer_use_ootb_internal-0.0.134}/src/computer_use_ootb_internal/preparation/star_rail_prepare.py +0 -0
- {computer_use_ootb_internal-0.0.133 → computer_use_ootb_internal-0.0.134}/src/computer_use_ootb_internal/requirements-lite.txt +0 -0
- {computer_use_ootb_internal-0.0.133 → computer_use_ootb_internal-0.0.134}/src/computer_use_ootb_internal/run_teachmode_ootb_args.py +0 -0
- {computer_use_ootb_internal-0.0.133 → computer_use_ootb_internal-0.0.134}/src/computer_use_ootb_internal/service_manager.py +0 -0
@@ -614,8 +614,7 @@ class GuardService(win32serviceutil.ServiceFramework):
|
|
614
614
|
try:
|
615
615
|
session_id = active_sessions[user]
|
616
616
|
token = win32ts.WTSQueryUserToken(session_id)
|
617
|
-
|
618
|
-
env = None # Use default environment provided by CreateProcessAsUser
|
617
|
+
env = win32profile.CreateEnvironmentBlock(token, False) # <-- Restore creating env block
|
619
618
|
startup = win32process.STARTUPINFO()
|
620
619
|
creation_flags = 0x00000010 # CREATE_NEW_CONSOLE
|
621
620
|
|
@@ -625,13 +624,13 @@ class GuardService(win32serviceutil.ServiceFramework):
|
|
625
624
|
cwd = os.path.dirname(self.target_executable_path.strip('"')) if os.path.dirname(self.target_executable_path.strip('"')) != '' else None
|
626
625
|
# --- End Launch via cmd /K ---
|
627
626
|
|
628
|
-
self.log_info(f"Calling CreateProcessAsUser to launch via cmd /K (
|
627
|
+
self.log_info(f"Calling CreateProcessAsUser to launch via cmd /K (Restored Environment Block):") # Updated log note
|
629
628
|
self.log_info(f" lpApplicationName: {lpApplicationName}")
|
630
629
|
self.log_info(f" lpCommandLine: {lpCommandLine}")
|
631
630
|
self.log_info(f" lpCurrentDirectory: {cwd if cwd else 'Default'}")
|
632
631
|
self.log_info(f" dwCreationFlags: {creation_flags} (CREATE_NEW_CONSOLE)")
|
633
632
|
|
634
|
-
# CreateProcessAsUser call with env
|
633
|
+
# CreateProcessAsUser call with restored env
|
635
634
|
hProcess, hThread, dwPid, dwTid = win32process.CreateProcessAsUser(
|
636
635
|
token, # User token
|
637
636
|
lpApplicationName, # Application name (None)
|
@@ -640,7 +639,7 @@ class GuardService(win32serviceutil.ServiceFramework):
|
|
640
639
|
None, # Thread attributes
|
641
640
|
False, # Inherit handles
|
642
641
|
creation_flags, # Creation flags (CREATE_NEW_CONSOLE)
|
643
|
-
env, # Environment block (
|
642
|
+
env, # Environment block (Restored)
|
644
643
|
cwd, # Current directory for cmd.exe
|
645
644
|
startup # Startup info
|
646
645
|
)
|
@@ -744,13 +743,14 @@ class GuardService(win32serviceutil.ServiceFramework):
|
|
744
743
|
$trigger = New-ScheduledTaskTrigger -AtLogOn # Keep AtLogOn as a fallback?
|
745
744
|
# --- Let's stick to ONE trigger type first. Replacing AtLogOn with Event ---
|
746
745
|
# $trigger = New-ScheduledTaskTrigger -AtLogOn -User "{username}"
|
747
|
-
|
746
|
+
# Add a 15 second delay to allow the session to potentially settle
|
747
|
+
$trigger = New-ScheduledTaskTrigger -Event -LogName $logName -Source $source -EventId $eventIDs[0] -Delay 'PT15S' # Primary trigger with delay
|
748
748
|
# Register additional triggers if needed, or handle logic differently.
|
749
749
|
# For simplicity, let's try one event trigger first (ID 21). If reconnect (25) is needed, we can add it.
|
750
750
|
# Consider adding delay: -Delay 'PT15S' # Delay 15 seconds after event?
|
751
751
|
|
752
752
|
$settings = New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -DontStopIfGoingOnBatteries -ExecutionTimeLimit (New-TimeSpan -Days 9999) -RestartCount 3 -RestartInterval (New-TimeSpan -Minutes 1)
|
753
|
-
$description = "Runs OOTB Application (via cmd) for user {username} upon session connect (Event Trigger)." # Updated description
|
753
|
+
$description = "Runs OOTB Application (via cmd) for user {username} upon session connect (Event Trigger, 15s Delay)." # Updated description
|
754
754
|
|
755
755
|
# Unregister existing task first (force) - Use the NEW task name
|
756
756
|
Unregister-ScheduledTask -TaskName $taskName -Confirm:$false -ErrorAction SilentlyContinue
|
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
|