computer-use-ootb-internal 0.0.148__tar.gz → 0.0.150__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.148 → computer_use_ootb_internal-0.0.150}/PKG-INFO +1 -1
- {computer_use_ootb_internal-0.0.148 → computer_use_ootb_internal-0.0.150}/pyproject.toml +1 -1
- {computer_use_ootb_internal-0.0.148 → computer_use_ootb_internal-0.0.150}/src/computer_use_ootb_internal/guard_service.py +15 -12
- {computer_use_ootb_internal-0.0.148 → computer_use_ootb_internal-0.0.150}/.gitignore +0 -0
- {computer_use_ootb_internal-0.0.148 → computer_use_ootb_internal-0.0.150}/src/computer_use_ootb_internal/README.md +0 -0
- {computer_use_ootb_internal-0.0.148 → computer_use_ootb_internal-0.0.150}/src/computer_use_ootb_internal/__init__.py +0 -0
- {computer_use_ootb_internal-0.0.148 → computer_use_ootb_internal-0.0.150}/src/computer_use_ootb_internal/app_teachmode.py +0 -0
- {computer_use_ootb_internal-0.0.148 → computer_use_ootb_internal-0.0.150}/src/computer_use_ootb_internal/computer_use_demo/animation/click_animation.py +0 -0
- {computer_use_ootb_internal-0.0.148 → computer_use_ootb_internal-0.0.150}/src/computer_use_ootb_internal/computer_use_demo/animation/icons8-select-cursor-transparent-96.gif +0 -0
- {computer_use_ootb_internal-0.0.148 → computer_use_ootb_internal-0.0.150}/src/computer_use_ootb_internal/computer_use_demo/animation/test_animation.py +0 -0
- {computer_use_ootb_internal-0.0.148 → computer_use_ootb_internal-0.0.150}/src/computer_use_ootb_internal/computer_use_demo/executor/teachmode_executor.py +0 -0
- {computer_use_ootb_internal-0.0.148 → computer_use_ootb_internal-0.0.150}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/simple_parser/__init__.py +0 -0
- {computer_use_ootb_internal-0.0.148 → computer_use_ootb_internal-0.0.150}/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.148 → computer_use_ootb_internal-0.0.150}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/simple_parser/utils.py +0 -0
- {computer_use_ootb_internal-0.0.148 → computer_use_ootb_internal-0.0.150}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/uia_tools/__init__.py +0 -0
- {computer_use_ootb_internal-0.0.148 → computer_use_ootb_internal-0.0.150}/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.148 → computer_use_ootb_internal-0.0.150}/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.148 → computer_use_ootb_internal-0.0.150}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/llm_utils.py +0 -0
- {computer_use_ootb_internal-0.0.148 → computer_use_ootb_internal-0.0.150}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/oai.py +0 -0
- {computer_use_ootb_internal-0.0.148 → computer_use_ootb_internal-0.0.150}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/run_litellm.py +0 -0
- {computer_use_ootb_internal-0.0.148 → computer_use_ootb_internal-0.0.150}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/run_llm.py +0 -0
- {computer_use_ootb_internal-0.0.148 → computer_use_ootb_internal-0.0.150}/src/computer_use_ootb_internal/computer_use_demo/tools/__init__.py +0 -0
- {computer_use_ootb_internal-0.0.148 → computer_use_ootb_internal-0.0.150}/src/computer_use_ootb_internal/computer_use_demo/tools/aws_request.py +0 -0
- {computer_use_ootb_internal-0.0.148 → computer_use_ootb_internal-0.0.150}/src/computer_use_ootb_internal/computer_use_demo/tools/base.py +0 -0
- {computer_use_ootb_internal-0.0.148 → computer_use_ootb_internal-0.0.150}/src/computer_use_ootb_internal/computer_use_demo/tools/bash.py +0 -0
- {computer_use_ootb_internal-0.0.148 → computer_use_ootb_internal-0.0.150}/src/computer_use_ootb_internal/computer_use_demo/tools/collection.py +0 -0
- {computer_use_ootb_internal-0.0.148 → computer_use_ootb_internal-0.0.150}/src/computer_use_ootb_internal/computer_use_demo/tools/colorful_text.py +0 -0
- {computer_use_ootb_internal-0.0.148 → computer_use_ootb_internal-0.0.150}/src/computer_use_ootb_internal/computer_use_demo/tools/computer.py +0 -0
- {computer_use_ootb_internal-0.0.148 → computer_use_ootb_internal-0.0.150}/src/computer_use_ootb_internal/computer_use_demo/tools/computer_marbot.py +0 -0
- {computer_use_ootb_internal-0.0.148 → computer_use_ootb_internal-0.0.150}/src/computer_use_ootb_internal/computer_use_demo/tools/edit.py +0 -0
- {computer_use_ootb_internal-0.0.148 → computer_use_ootb_internal-0.0.150}/src/computer_use_ootb_internal/computer_use_demo/tools/run.py +0 -0
- {computer_use_ootb_internal-0.0.148 → computer_use_ootb_internal-0.0.150}/src/computer_use_ootb_internal/computer_use_demo/tools/screen_capture.py +0 -0
- {computer_use_ootb_internal-0.0.148 → computer_use_ootb_internal-0.0.150}/src/computer_use_ootb_internal/dependency_check.py +0 -0
- {computer_use_ootb_internal-0.0.148 → computer_use_ootb_internal-0.0.150}/src/computer_use_ootb_internal/preparation/__init__.py +0 -0
- {computer_use_ootb_internal-0.0.148 → computer_use_ootb_internal-0.0.150}/src/computer_use_ootb_internal/preparation/star_rail_prepare.py +0 -0
- {computer_use_ootb_internal-0.0.148 → computer_use_ootb_internal-0.0.150}/src/computer_use_ootb_internal/requirements-lite.txt +0 -0
- {computer_use_ootb_internal-0.0.148 → computer_use_ootb_internal-0.0.150}/src/computer_use_ootb_internal/run_teachmode_ootb_args.py +0 -0
- {computer_use_ootb_internal-0.0.148 → computer_use_ootb_internal-0.0.150}/src/computer_use_ootb_internal/service_manager.py +0 -0
- {computer_use_ootb_internal-0.0.148 → computer_use_ootb_internal-0.0.150}/src/computer_use_ootb_internal/signal_connection.py +0 -0
@@ -771,27 +771,30 @@ class GuardService(win32serviceutil.ServiceFramework):
|
|
771
771
|
token = win32ts.WTSQueryUserToken(session_id)
|
772
772
|
env = win32profile.CreateEnvironmentBlock(token, False)
|
773
773
|
startup = win32process.STARTUPINFO()
|
774
|
-
|
774
|
+
# Use CREATE_NEW_CONSOLE to make the PS window visible and potentially the UAC prompt
|
775
|
+
creation_flags = win32con.CREATE_NEW_CONSOLE
|
775
776
|
|
776
777
|
# Command to run PowerShell, which then elevates the target executable
|
777
|
-
|
778
|
-
|
778
|
+
target_exe_unquoted = self.target_executable_path.strip('"')
|
779
|
+
target_exe_for_ps = target_exe_unquoted.replace("'", "''") # Escape single quotes for PS
|
780
|
+
# Build arguments as a PowerShell array string
|
781
|
+
arguments_for_ps_array = f'@("--port", "{calculated_port}", "--target_user", "\'{user}\'")'
|
782
|
+
|
779
783
|
powershell_command = (
|
780
784
|
f'Start-Process -FilePath "{target_exe_for_ps}" '
|
781
|
-
f'-ArgumentList
|
785
|
+
f'-ArgumentList {arguments_for_ps_array} -Verb RunAs' # Pass the array syntax directly
|
782
786
|
)
|
783
|
-
#
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
|
788
|
-
lpCommandLine = f'cmd.exe /c "powershell.exe -ExecutionPolicy Bypass -NoProfile -Command \\"{escaped_ps_command}\\""'
|
787
|
+
# Launch powershell.exe directly, tell it to run the Start-Process command, and keep window open
|
788
|
+
# Need to escape quotes within the -Command argument
|
789
|
+
escaped_ps_command_for_command_arg = powershell_command.replace('"', '`"' ) # Use backtick escaping for PS command arg
|
790
|
+
|
791
|
+
lpCommandLine = f'powershell.exe -NoProfile -ExecutionPolicy Bypass -NoExit -Command "& {{{escaped_ps_command_for_command_arg}}}"'
|
789
792
|
|
790
793
|
lpApplicationName = None # Must be None if using lpCommandLine
|
791
|
-
cwd = os.path.dirname(
|
794
|
+
cwd = os.path.dirname(target_exe_unquoted) if os.path.dirname(target_exe_unquoted) else None
|
792
795
|
|
793
796
|
# Log details before call
|
794
|
-
self.log_info(f"Internal trigger:
|
797
|
+
self.log_info(f"Internal trigger: Launching PowerShell directly for elevation:")
|
795
798
|
self.log_info(f" lpCommandLine: {lpCommandLine}")
|
796
799
|
self.log_info(f" lpCurrentDirectory: {cwd if cwd else 'Default'}")
|
797
800
|
|
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
|