computer-use-ootb-internal 0.0.157__tar.gz → 0.0.158__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.
Files changed (39) hide show
  1. {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.158}/PKG-INFO +1 -1
  2. {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.158}/pyproject.toml +1 -1
  3. {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.158}/src/computer_use_ootb_internal/guard_service.py +8 -3
  4. {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.158}/.gitignore +0 -0
  5. {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.158}/src/computer_use_ootb_internal/README.md +0 -0
  6. {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.158}/src/computer_use_ootb_internal/__init__.py +0 -0
  7. {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.158}/src/computer_use_ootb_internal/app_teachmode.py +0 -0
  8. {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.158}/src/computer_use_ootb_internal/computer_use_demo/animation/click_animation.py +0 -0
  9. {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.158}/src/computer_use_ootb_internal/computer_use_demo/animation/icons8-select-cursor-transparent-96.gif +0 -0
  10. {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.158}/src/computer_use_ootb_internal/computer_use_demo/animation/test_animation.py +0 -0
  11. {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.158}/src/computer_use_ootb_internal/computer_use_demo/executor/teachmode_executor.py +0 -0
  12. {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.158}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/simple_parser/__init__.py +0 -0
  13. {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.158}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/simple_parser/gui_capture.py +0 -0
  14. {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.158}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/simple_parser/utils.py +0 -0
  15. {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.158}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/uia_tools/__init__.py +0 -0
  16. {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.158}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/uia_tools/screenshot_cli.py +0 -0
  17. {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.158}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/uia_tools/screenshot_service.py +0 -0
  18. {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.158}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/llm_utils.py +0 -0
  19. {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.158}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/oai.py +0 -0
  20. {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.158}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/run_litellm.py +0 -0
  21. {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.158}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/run_llm.py +0 -0
  22. {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.158}/src/computer_use_ootb_internal/computer_use_demo/tools/__init__.py +0 -0
  23. {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.158}/src/computer_use_ootb_internal/computer_use_demo/tools/aws_request.py +0 -0
  24. {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.158}/src/computer_use_ootb_internal/computer_use_demo/tools/base.py +0 -0
  25. {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.158}/src/computer_use_ootb_internal/computer_use_demo/tools/bash.py +0 -0
  26. {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.158}/src/computer_use_ootb_internal/computer_use_demo/tools/collection.py +0 -0
  27. {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.158}/src/computer_use_ootb_internal/computer_use_demo/tools/colorful_text.py +0 -0
  28. {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.158}/src/computer_use_ootb_internal/computer_use_demo/tools/computer.py +0 -0
  29. {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.158}/src/computer_use_ootb_internal/computer_use_demo/tools/computer_marbot.py +0 -0
  30. {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.158}/src/computer_use_ootb_internal/computer_use_demo/tools/edit.py +0 -0
  31. {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.158}/src/computer_use_ootb_internal/computer_use_demo/tools/run.py +0 -0
  32. {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.158}/src/computer_use_ootb_internal/computer_use_demo/tools/screen_capture.py +0 -0
  33. {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.158}/src/computer_use_ootb_internal/dependency_check.py +0 -0
  34. {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.158}/src/computer_use_ootb_internal/preparation/__init__.py +0 -0
  35. {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.158}/src/computer_use_ootb_internal/preparation/star_rail_prepare.py +0 -0
  36. {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.158}/src/computer_use_ootb_internal/requirements-lite.txt +0 -0
  37. {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.158}/src/computer_use_ootb_internal/run_teachmode_ootb_args.py +0 -0
  38. {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.158}/src/computer_use_ootb_internal/service_manager.py +0 -0
  39. {computer_use_ootb_internal-0.0.157 → computer_use_ootb_internal-0.0.158}/src/computer_use_ootb_internal/signal_connection.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: computer-use-ootb-internal
3
- Version: 0.0.157
3
+ Version: 0.0.158
4
4
  Summary: Computer Use OOTB
5
5
  Author-email: Siyuan Hu <siyuan.hu.sg@gmail.com>
6
6
  Requires-Python: >=3.11
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "computer-use-ootb-internal"
7
- version = "0.0.157"
7
+ version = "0.0.158"
8
8
  description = "Computer Use OOTB"
9
9
  authors = [{ name = "Siyuan Hu", email = "siyuan.hu.sg@gmail.com" }]
10
10
  requires-python = ">=3.11"
@@ -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
- # Format exactly like the working command: "<exe_path>" --port <port> --target_user ''<user>''
784
- cmd_k_second_arg_content = f'""{target_exe_for_ps}"" --port {calculated_port} --target_user ''{user}''' # Use Python's f-string interpolation correctly
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