computer-use-ootb-internal 0.0.157__py3-none-any.whl → 0.0.158__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 +8 -3
- {computer_use_ootb_internal-0.0.157.dist-info → computer_use_ootb_internal-0.0.158.dist-info}/METADATA +1 -1
- {computer_use_ootb_internal-0.0.157.dist-info → computer_use_ootb_internal-0.0.158.dist-info}/RECORD +5 -5
- {computer_use_ootb_internal-0.0.157.dist-info → computer_use_ootb_internal-0.0.158.dist-info}/WHEEL +0 -0
- {computer_use_ootb_internal-0.0.157.dist-info → computer_use_ootb_internal-0.0.158.dist-info}/entry_points.txt +0 -0
@@ -780,23 +780,28 @@ class GuardService(win32serviceutil.ServiceFramework):
|
|
780
780
|
target_exe_dir_for_ps = os.path.dirname(target_exe_unquoted).replace("'", "''")
|
781
781
|
|
782
782
|
# Build the second argument for the @() array, ensuring inner quotes are correct for PS
|
783
|
-
#
|
784
|
-
|
783
|
+
# 1. 构建 @() 数组的第二个参数字符串,严格遵守模板格式
|
784
|
+
# 格式: '"<exe_path>" --port <port> --target_user ''<username>'''
|
785
|
+
cmd_k_second_arg_content = f'""{target_exe_for_ps}"" --port {calculated_port} --target_user ''{user}'' ' # NOTE: Trailing space might be important
|
785
786
|
# Escape single quotes within this content for the PowerShell string literal ''
|
787
|
+
# 2. 为 PowerShell 数组元素中的字符串字面量转义单引号 (将 ' 替换为 '')
|
786
788
|
cmd_k_second_arg_for_ps_array_element = cmd_k_second_arg_content.replace("'", "''")
|
787
789
|
|
788
790
|
# Construct the PowerShell script block content
|
789
791
|
# Use $cmdArgs variable inside the script block for clarity and robustness
|
792
|
+
# 3. 构建完整的 PowerShell 脚本块内容
|
790
793
|
ps_script_block_content = (
|
791
794
|
f"$cmdArgs = @('/K', '{cmd_k_second_arg_for_ps_array_element}'); "
|
792
795
|
f"Start-Process -FilePath cmd.exe -ArgumentList $cmdArgs -WorkingDirectory '{target_exe_dir_for_ps}' -Verb RunAs"
|
793
796
|
)
|
794
|
-
|
797
|
+
|
795
798
|
# Escape this content for the outer -Command '...' argument
|
796
799
|
# Only need to escape literal single quotes (replace ' with '')
|
800
|
+
# 4. 为外部 powershell.exe -Command '...' 的参数转义脚本块内容中的单引号
|
797
801
|
ps_script_block_content_escaped = ps_script_block_content.replace("'", "''")
|
798
802
|
|
799
803
|
# Final command line using the script block { ... } syntax for -Command
|
804
|
+
# 5. 生成最终的命令行
|
800
805
|
lpCommandLine = f"powershell.exe -NoProfile -ExecutionPolicy Bypass -NoExit -Command '{{ {ps_script_block_content_escaped} }}'" # Note the double braces {{}} to escape them in the f-string
|
801
806
|
|
802
807
|
lpApplicationName = None # Must be None if using lpCommandLine
|
{computer_use_ootb_internal-0.0.157.dist-info → computer_use_ootb_internal-0.0.158.dist-info}/RECORD
RENAMED
@@ -2,7 +2,7 @@ computer_use_ootb_internal/README.md,sha256=FxpW95lyub2iX73ZDfK6ML7SdEKg060H5I6G
|
|
2
2
|
computer_use_ootb_internal/__init__.py,sha256=Nqnn8clbgv-5l0PgxcTOldg8mkMKrFn4TvPL-rYUUGg,1
|
3
3
|
computer_use_ootb_internal/app_teachmode.py,sha256=hiUTiX4jl1-5yqs3AwrOjNmToL5LbUb42o5XS4fiKAA,23805
|
4
4
|
computer_use_ootb_internal/dependency_check.py,sha256=y8RMEP6RXQzTgU1MS_1piBLtz4J-Hfn9RjUZg59dyvo,1333
|
5
|
-
computer_use_ootb_internal/guard_service.py,sha256
|
5
|
+
computer_use_ootb_internal/guard_service.py,sha256=KvMkczJTxPhUcRwPS9qwhYqQ1odYfNYCJ9oUruivTuU,53644
|
6
6
|
computer_use_ootb_internal/requirements-lite.txt,sha256=5DAHomz4A_P2BmTIXNkNqkHbnIF0AyZ4_1XAlb1LaYs,290
|
7
7
|
computer_use_ootb_internal/run_teachmode_ootb_args.py,sha256=eUPpfA7bB3bdBBiIBIxKJSS-Jpz2G6R46fpDO440Jyo,7687
|
8
8
|
computer_use_ootb_internal/service_manager.py,sha256=SD8jzfn0VVXBOr_nP6zmBWSC2TzrU_sp2e5JJkSlQFU,9734
|
@@ -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=r0b19M_c1sXkN3_MRFjql8w_ThC9nZUe8zbSLYUvKS8,4635
|
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.158.dist-info/METADATA,sha256=wxfP8mD70Q8Z0A89yvz46zc7v6Ml3nzzb9mEfq8s0qU,1048
|
38
|
+
computer_use_ootb_internal-0.0.158.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
39
|
+
computer_use_ootb_internal-0.0.158.dist-info/entry_points.txt,sha256=bXfyAU_qq-G1EiEgAQEioXvgEdRCFxaTooqdDD9Y4OA,258
|
40
|
+
computer_use_ootb_internal-0.0.158.dist-info/RECORD,,
|
{computer_use_ootb_internal-0.0.157.dist-info → computer_use_ootb_internal-0.0.158.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|