computer-use-ootb-internal 0.0.132__tar.gz → 0.0.133__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 (38) hide show
  1. {computer_use_ootb_internal-0.0.132 → computer_use_ootb_internal-0.0.133}/PKG-INFO +1 -1
  2. {computer_use_ootb_internal-0.0.132 → computer_use_ootb_internal-0.0.133}/pyproject.toml +1 -1
  3. {computer_use_ootb_internal-0.0.132 → computer_use_ootb_internal-0.0.133}/src/computer_use_ootb_internal/guard_service.py +6 -13
  4. {computer_use_ootb_internal-0.0.132 → computer_use_ootb_internal-0.0.133}/.gitignore +0 -0
  5. {computer_use_ootb_internal-0.0.132 → computer_use_ootb_internal-0.0.133}/src/computer_use_ootb_internal/README.md +0 -0
  6. {computer_use_ootb_internal-0.0.132 → computer_use_ootb_internal-0.0.133}/src/computer_use_ootb_internal/__init__.py +0 -0
  7. {computer_use_ootb_internal-0.0.132 → computer_use_ootb_internal-0.0.133}/src/computer_use_ootb_internal/app_teachmode.py +0 -0
  8. {computer_use_ootb_internal-0.0.132 → computer_use_ootb_internal-0.0.133}/src/computer_use_ootb_internal/computer_use_demo/animation/click_animation.py +0 -0
  9. {computer_use_ootb_internal-0.0.132 → computer_use_ootb_internal-0.0.133}/src/computer_use_ootb_internal/computer_use_demo/animation/icons8-select-cursor-transparent-96.gif +0 -0
  10. {computer_use_ootb_internal-0.0.132 → computer_use_ootb_internal-0.0.133}/src/computer_use_ootb_internal/computer_use_demo/animation/test_animation.py +0 -0
  11. {computer_use_ootb_internal-0.0.132 → computer_use_ootb_internal-0.0.133}/src/computer_use_ootb_internal/computer_use_demo/executor/teachmode_executor.py +0 -0
  12. {computer_use_ootb_internal-0.0.132 → computer_use_ootb_internal-0.0.133}/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.132 → computer_use_ootb_internal-0.0.133}/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.132 → computer_use_ootb_internal-0.0.133}/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.132 → computer_use_ootb_internal-0.0.133}/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.132 → computer_use_ootb_internal-0.0.133}/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.132 → computer_use_ootb_internal-0.0.133}/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.132 → computer_use_ootb_internal-0.0.133}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/llm_utils.py +0 -0
  19. {computer_use_ootb_internal-0.0.132 → computer_use_ootb_internal-0.0.133}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/oai.py +0 -0
  20. {computer_use_ootb_internal-0.0.132 → computer_use_ootb_internal-0.0.133}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/run_litellm.py +0 -0
  21. {computer_use_ootb_internal-0.0.132 → computer_use_ootb_internal-0.0.133}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/run_llm.py +0 -0
  22. {computer_use_ootb_internal-0.0.132 → computer_use_ootb_internal-0.0.133}/src/computer_use_ootb_internal/computer_use_demo/tools/__init__.py +0 -0
  23. {computer_use_ootb_internal-0.0.132 → computer_use_ootb_internal-0.0.133}/src/computer_use_ootb_internal/computer_use_demo/tools/aws_request.py +0 -0
  24. {computer_use_ootb_internal-0.0.132 → computer_use_ootb_internal-0.0.133}/src/computer_use_ootb_internal/computer_use_demo/tools/base.py +0 -0
  25. {computer_use_ootb_internal-0.0.132 → computer_use_ootb_internal-0.0.133}/src/computer_use_ootb_internal/computer_use_demo/tools/bash.py +0 -0
  26. {computer_use_ootb_internal-0.0.132 → computer_use_ootb_internal-0.0.133}/src/computer_use_ootb_internal/computer_use_demo/tools/collection.py +0 -0
  27. {computer_use_ootb_internal-0.0.132 → computer_use_ootb_internal-0.0.133}/src/computer_use_ootb_internal/computer_use_demo/tools/colorful_text.py +0 -0
  28. {computer_use_ootb_internal-0.0.132 → computer_use_ootb_internal-0.0.133}/src/computer_use_ootb_internal/computer_use_demo/tools/computer.py +0 -0
  29. {computer_use_ootb_internal-0.0.132 → computer_use_ootb_internal-0.0.133}/src/computer_use_ootb_internal/computer_use_demo/tools/computer_marbot.py +0 -0
  30. {computer_use_ootb_internal-0.0.132 → computer_use_ootb_internal-0.0.133}/src/computer_use_ootb_internal/computer_use_demo/tools/edit.py +0 -0
  31. {computer_use_ootb_internal-0.0.132 → computer_use_ootb_internal-0.0.133}/src/computer_use_ootb_internal/computer_use_demo/tools/run.py +0 -0
  32. {computer_use_ootb_internal-0.0.132 → computer_use_ootb_internal-0.0.133}/src/computer_use_ootb_internal/computer_use_demo/tools/screen_capture.py +0 -0
  33. {computer_use_ootb_internal-0.0.132 → computer_use_ootb_internal-0.0.133}/src/computer_use_ootb_internal/dependency_check.py +0 -0
  34. {computer_use_ootb_internal-0.0.132 → computer_use_ootb_internal-0.0.133}/src/computer_use_ootb_internal/preparation/__init__.py +0 -0
  35. {computer_use_ootb_internal-0.0.132 → computer_use_ootb_internal-0.0.133}/src/computer_use_ootb_internal/preparation/star_rail_prepare.py +0 -0
  36. {computer_use_ootb_internal-0.0.132 → computer_use_ootb_internal-0.0.133}/src/computer_use_ootb_internal/requirements-lite.txt +0 -0
  37. {computer_use_ootb_internal-0.0.132 → computer_use_ootb_internal-0.0.133}/src/computer_use_ootb_internal/run_teachmode_ootb_args.py +0 -0
  38. {computer_use_ootb_internal-0.0.132 → computer_use_ootb_internal-0.0.133}/src/computer_use_ootb_internal/service_manager.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: computer-use-ootb-internal
3
- Version: 0.0.132
3
+ Version: 0.0.133
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.132"
7
+ version = "0.0.133"
8
8
  description = "Computer Use OOTB"
9
9
  authors = [{ name = "Siyuan Hu", email = "siyuan.hu.sg@gmail.com" }]
10
10
  requires-python = ">=3.11"
@@ -614,31 +614,24 @@ class GuardService(win32serviceutil.ServiceFramework):
614
614
  try:
615
615
  session_id = active_sessions[user]
616
616
  token = win32ts.WTSQueryUserToken(session_id)
617
- env = win32profile.CreateEnvironmentBlock(token, False)
617
+ # env = win32profile.CreateEnvironmentBlock(token, False) # <-- Temporarily disable creating env block
618
+ env = None # Use default environment provided by CreateProcessAsUser
618
619
  startup = win32process.STARTUPINFO()
619
- # No need to hide the window now, cmd /K will keep it open.
620
- # startup.dwFlags = win32process.STARTF_USESHOWWINDOW
621
- # startup.wShowWindow = win32con.SW_HIDE
622
620
  creation_flags = 0x00000010 # CREATE_NEW_CONSOLE
623
621
 
624
622
  # --- Launch via cmd /K ---
625
- # Use cmd.exe to launch the target, keeping the window open
626
- lpApplicationName = None # We specify cmd.exe in the command line
627
- # Ensure target path is quoted correctly within the command string
628
- # self.target_executable_path should already be quoted if needed
623
+ lpApplicationName = None
629
624
  lpCommandLine = f'cmd.exe /K "{self.target_executable_path}"'
630
-
631
- # Determine CWD for the cmd process (can be None to use default)
632
625
  cwd = os.path.dirname(self.target_executable_path.strip('"')) if os.path.dirname(self.target_executable_path.strip('"')) != '' else None
633
626
  # --- End Launch via cmd /K ---
634
627
 
635
- self.log_info(f"Calling CreateProcessAsUser to launch via cmd /K:")
628
+ self.log_info(f"Calling CreateProcessAsUser to launch via cmd /K (Default Environment Test):") # Added note to log
636
629
  self.log_info(f" lpApplicationName: {lpApplicationName}")
637
630
  self.log_info(f" lpCommandLine: {lpCommandLine}")
638
631
  self.log_info(f" lpCurrentDirectory: {cwd if cwd else 'Default'}")
639
632
  self.log_info(f" dwCreationFlags: {creation_flags} (CREATE_NEW_CONSOLE)")
640
633
 
641
- # CreateProcessAsUser call
634
+ # CreateProcessAsUser call with env = None
642
635
  hProcess, hThread, dwPid, dwTid = win32process.CreateProcessAsUser(
643
636
  token, # User token
644
637
  lpApplicationName, # Application name (None)
@@ -647,7 +640,7 @@ class GuardService(win32serviceutil.ServiceFramework):
647
640
  None, # Thread attributes
648
641
  False, # Inherit handles
649
642
  creation_flags, # Creation flags (CREATE_NEW_CONSOLE)
650
- env, # Environment block
643
+ env, # Environment block (Now None)
651
644
  cwd, # Current directory for cmd.exe
652
645
  startup # Startup info
653
646
  )