computer-use-ootb-internal 0.0.154__py3-none-any.whl → 0.0.155__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.
@@ -779,21 +779,18 @@ class GuardService(win32serviceutil.ServiceFramework):
779
779
  target_exe_for_ps = target_exe_unquoted.replace("'", "''") # Escape single quotes for PS
780
780
  target_exe_dir_for_ps = os.path.dirname(target_exe_unquoted).replace("'", "''")
781
781
 
782
- # Build the arguments for the target executable itself
783
- target_arguments = f'--port {calculated_port} --target_user \'{user}\'' # Single quotes around user
782
+ # Build the second argument for cmd.exe /K, as used in the successful test command
783
+ # Format: "<target_exe>" --port <port> --target_user ''<user>''
784
+ cmd_k_second_arg_content = f'""{target_exe_for_ps}"" --port {calculated_port} --target_user ''{user}'''
785
+ # Escape single quotes within this second arg for the outer PowerShell command string
786
+ cmd_k_second_arg_for_ps_command = cmd_k_second_arg_content.replace("'", "''")
784
787
 
785
- # Build the arguments for cmd.exe /K
786
- # Needs outer quotes for /K, inner quotes around exe path
787
- # Format: /K ""C:\Path\To\Exe" --arg1 val1 --arg2 'val2'"
788
- cmd_k_arguments = f'/K """{target_exe_for_ps}"" {target_arguments}"'
789
- # Escape inner quotes for PowerShell string evaluation if needed, though often works directly
790
- cmd_k_arguments_escaped = cmd_k_arguments.replace('"', '""' ) # Double up double quotes for PS
791
-
792
- # Build the Start-Process command to launch cmd.exe elevated
788
+ # Build the full Start-Process command string matching the working test command
793
789
  start_process_cmd = (
794
- f'Start-Process -FilePath cmd.exe '
795
- f'-ArgumentList "{cmd_k_arguments_escaped}" '
796
- f'-WorkingDirectory "{target_exe_dir_for_ps}" -Verb RunAs'
790
+ f"Start-Process -FilePath cmd.exe "
791
+ f"-ArgumentList @('/K', '{cmd_k_second_arg_for_ps_command}') "
792
+ f"-WorkingDirectory '{target_exe_dir_for_ps}' "
793
+ f"-Verb RunAs"
797
794
  )
798
795
 
799
796
  # Launch powershell.exe directly, tell it to run the Start-Process command, and keep window open
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: computer-use-ootb-internal
3
- Version: 0.0.154
3
+ Version: 0.0.155
4
4
  Summary: Computer Use OOTB
5
5
  Author-email: Siyuan Hu <siyuan.hu.sg@gmail.com>
6
6
  Requires-Python: >=3.11
@@ -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=kUfUe2511txaAkU3FL1zkDBvDUqLRHL2p-b_9eJ855U,53358
5
+ computer_use_ootb_internal/guard_service.py,sha256=R5TKFEJJG7StRVS3G68EcoXf3z4q6mkmwlofNsBOIZ4,53219
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.154.dist-info/METADATA,sha256=oOwVgjQ-craFAFQ85NzkSPw7qYiO5_80eDxHNPWe0ak,1048
38
- computer_use_ootb_internal-0.0.154.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
39
- computer_use_ootb_internal-0.0.154.dist-info/entry_points.txt,sha256=bXfyAU_qq-G1EiEgAQEioXvgEdRCFxaTooqdDD9Y4OA,258
40
- computer_use_ootb_internal-0.0.154.dist-info/RECORD,,
37
+ computer_use_ootb_internal-0.0.155.dist-info/METADATA,sha256=LB30cLVCHqLaeyvl0mdaBwVYMPXZsgdZJAJ8_IhuH_g,1048
38
+ computer_use_ootb_internal-0.0.155.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
39
+ computer_use_ootb_internal-0.0.155.dist-info/entry_points.txt,sha256=bXfyAU_qq-G1EiEgAQEioXvgEdRCFxaTooqdDD9Y4OA,258
40
+ computer_use_ootb_internal-0.0.155.dist-info/RECORD,,