computer-use-ootb-internal 0.0.157__tar.gz → 0.0.159__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.157 → computer_use_ootb_internal-0.0.159}/PKG-INFO +1 -1
- {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.159}/pyproject.toml +1 -1
- {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.159}/src/computer_use_ootb_internal/guard_service.py +11 -14
- {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.159}/.gitignore +0 -0
- {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.159}/src/computer_use_ootb_internal/README.md +0 -0
- {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.159}/src/computer_use_ootb_internal/__init__.py +0 -0
- {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.159}/src/computer_use_ootb_internal/app_teachmode.py +0 -0
- {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.159}/src/computer_use_ootb_internal/computer_use_demo/animation/click_animation.py +0 -0
- {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.159}/src/computer_use_ootb_internal/computer_use_demo/animation/icons8-select-cursor-transparent-96.gif +0 -0
- {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.159}/src/computer_use_ootb_internal/computer_use_demo/animation/test_animation.py +0 -0
- {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.159}/src/computer_use_ootb_internal/computer_use_demo/executor/teachmode_executor.py +0 -0
- {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.159}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/simple_parser/__init__.py +0 -0
- {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.159}/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.157 → computer_use_ootb_internal-0.0.159}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/simple_parser/utils.py +0 -0
- {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.159}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/uia_tools/__init__.py +0 -0
- {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.159}/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.157 → computer_use_ootb_internal-0.0.159}/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.157 → computer_use_ootb_internal-0.0.159}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/llm_utils.py +0 -0
- {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.159}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/oai.py +0 -0
- {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.159}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/run_litellm.py +0 -0
- {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.159}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/run_llm.py +0 -0
- {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.159}/src/computer_use_ootb_internal/computer_use_demo/tools/__init__.py +0 -0
- {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.159}/src/computer_use_ootb_internal/computer_use_demo/tools/aws_request.py +0 -0
- {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.159}/src/computer_use_ootb_internal/computer_use_demo/tools/base.py +0 -0
- {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.159}/src/computer_use_ootb_internal/computer_use_demo/tools/bash.py +0 -0
- {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.159}/src/computer_use_ootb_internal/computer_use_demo/tools/collection.py +0 -0
- {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.159}/src/computer_use_ootb_internal/computer_use_demo/tools/colorful_text.py +0 -0
- {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.159}/src/computer_use_ootb_internal/computer_use_demo/tools/computer.py +0 -0
- {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.159}/src/computer_use_ootb_internal/computer_use_demo/tools/computer_marbot.py +0 -0
- {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.159}/src/computer_use_ootb_internal/computer_use_demo/tools/edit.py +0 -0
- {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.159}/src/computer_use_ootb_internal/computer_use_demo/tools/run.py +0 -0
- {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.159}/src/computer_use_ootb_internal/computer_use_demo/tools/screen_capture.py +0 -0
- {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.159}/src/computer_use_ootb_internal/dependency_check.py +0 -0
- {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.159}/src/computer_use_ootb_internal/preparation/__init__.py +0 -0
- {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.159}/src/computer_use_ootb_internal/preparation/star_rail_prepare.py +0 -0
- {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.159}/src/computer_use_ootb_internal/requirements-lite.txt +0 -0
- {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.159}/src/computer_use_ootb_internal/run_teachmode_ootb_args.py +0 -0
- {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.159}/src/computer_use_ootb_internal/service_manager.py +0 -0
- {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.159}/src/computer_use_ootb_internal/signal_connection.py +0 -0
@@ -779,25 +779,22 @@ class GuardService(win32serviceutil.ServiceFramework):
|
|
779
779
|
target_exe_for_ps = target_exe_unquoted.replace("'", "''") # Escape single quotes for PS strings
|
780
780
|
target_exe_dir_for_ps = os.path.dirname(target_exe_unquoted).replace("'", "''")
|
781
781
|
|
782
|
-
#
|
783
|
-
#
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
|
788
|
-
# Construct the PowerShell script block content
|
789
|
-
# Use $cmdArgs variable inside the script block for clarity and robustness
|
790
|
-
ps_script_block_content = (
|
791
|
-
f"$cmdArgs = @('/K', '{cmd_k_second_arg_for_ps_array_element}'); "
|
792
|
-
f"Start-Process -FilePath cmd.exe -ArgumentList $cmdArgs -WorkingDirectory '{target_exe_dir_for_ps}' -Verb RunAs"
|
793
|
-
)
|
782
|
+
# 1. 精确构建工作命令的字符串内容 (无外部单引号)
|
783
|
+
# 模板: Start-Process -FilePath cmd.exe -ArgumentList @('/K', '"<path>" --port <port> --target_user ''<user>''') -WorkingDirectory '<dir>' -Verb RunAs
|
784
|
+
# 注意内部字符串元素的单引号转义: \' -> \'\', 和用户名的 \'\'<user>\'\'
|
785
|
+
cmd_k_second_arg_content = f'"""{target_exe_for_ps}""" --port {calculated_port} --target_user ''{user}'''
|
786
|
+
cmd_k_second_arg_escaped_for_array_literal = cmd_k_second_arg_content.replace("'", "''") # 转义内部字符串元素中的单引号
|
794
787
|
|
788
|
+
working_ps_command = f"Start-Process -FilePath cmd.exe -ArgumentList @('/K', '{cmd_k_second_arg_escaped_for_array_literal}') -WorkingDirectory '{target_exe_dir_for_ps}' -Verb RunAs" # 构建命令主体
|
789
|
+
|
795
790
|
# Escape this content for the outer -Command '...' argument
|
796
791
|
# Only need to escape literal single quotes (replace ' with '')
|
797
|
-
|
792
|
+
# 2. 为外部 powershell.exe -Command '...' 转义整个命令主体中的单引号
|
793
|
+
working_ps_command_escaped = working_ps_command.replace("'", "''")
|
798
794
|
|
799
795
|
# Final command line using the script block { ... } syntax for -Command
|
800
|
-
|
796
|
+
# 3. 生成最终的命令行 (传递给 CreateProcessAsUser 启动的 powershell)
|
797
|
+
lpCommandLine = f"powershell.exe -NoProfile -ExecutionPolicy Bypass -NoExit -Command '{working_ps_command_escaped}'"
|
801
798
|
|
802
799
|
lpApplicationName = None # Must be None if using lpCommandLine
|
803
800
|
cwd = os.path.dirname(target_exe_unquoted) if os.path.dirname(target_exe_unquoted) else None
|
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
|