computer-use-ootb-internal 0.0.115__tar.gz → 0.0.116__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 (40) hide show
  1. {computer_use_ootb_internal-0.0.115 → computer_use_ootb_internal-0.0.116}/PKG-INFO +1 -1
  2. {computer_use_ootb_internal-0.0.115 → computer_use_ootb_internal-0.0.116}/pyproject.toml +1 -1
  3. {computer_use_ootb_internal-0.0.115 → computer_use_ootb_internal-0.0.116}/src/computer_use_ootb_internal/service_manager.py +21 -11
  4. {computer_use_ootb_internal-0.0.115 → computer_use_ootb_internal-0.0.116}/.gitignore +0 -0
  5. {computer_use_ootb_internal-0.0.115 → computer_use_ootb_internal-0.0.116}/deploy.sh +0 -0
  6. {computer_use_ootb_internal-0.0.115 → computer_use_ootb_internal-0.0.116}/src/computer_use_ootb_internal/README.md +0 -0
  7. {computer_use_ootb_internal-0.0.115 → computer_use_ootb_internal-0.0.116}/src/computer_use_ootb_internal/__init__.py +0 -0
  8. {computer_use_ootb_internal-0.0.115 → computer_use_ootb_internal-0.0.116}/src/computer_use_ootb_internal/app_teachmode.py +0 -0
  9. {computer_use_ootb_internal-0.0.115 → computer_use_ootb_internal-0.0.116}/src/computer_use_ootb_internal/app_teachmode_gradio.py +0 -0
  10. {computer_use_ootb_internal-0.0.115 → computer_use_ootb_internal-0.0.116}/src/computer_use_ootb_internal/computer_use_demo/animation/click_animation.py +0 -0
  11. {computer_use_ootb_internal-0.0.115 → computer_use_ootb_internal-0.0.116}/src/computer_use_ootb_internal/computer_use_demo/animation/icons8-select-cursor-transparent-96.gif +0 -0
  12. {computer_use_ootb_internal-0.0.115 → computer_use_ootb_internal-0.0.116}/src/computer_use_ootb_internal/computer_use_demo/animation/test_animation.py +0 -0
  13. {computer_use_ootb_internal-0.0.115 → computer_use_ootb_internal-0.0.116}/src/computer_use_ootb_internal/computer_use_demo/executor/teachmode_executor.py +0 -0
  14. {computer_use_ootb_internal-0.0.115 → computer_use_ootb_internal-0.0.116}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/simple_parser/__init__.py +0 -0
  15. {computer_use_ootb_internal-0.0.115 → computer_use_ootb_internal-0.0.116}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/simple_parser/gui_capture.py +0 -0
  16. {computer_use_ootb_internal-0.0.115 → computer_use_ootb_internal-0.0.116}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/simple_parser/utils.py +0 -0
  17. {computer_use_ootb_internal-0.0.115 → computer_use_ootb_internal-0.0.116}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/uia_tools/__init__.py +0 -0
  18. {computer_use_ootb_internal-0.0.115 → computer_use_ootb_internal-0.0.116}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/uia_tools/screenshot_cli.py +0 -0
  19. {computer_use_ootb_internal-0.0.115 → computer_use_ootb_internal-0.0.116}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/uia_tools/screenshot_service.py +0 -0
  20. {computer_use_ootb_internal-0.0.115 → computer_use_ootb_internal-0.0.116}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/llm_utils.py +0 -0
  21. {computer_use_ootb_internal-0.0.115 → computer_use_ootb_internal-0.0.116}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/oai.py +0 -0
  22. {computer_use_ootb_internal-0.0.115 → computer_use_ootb_internal-0.0.116}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/run_litellm.py +0 -0
  23. {computer_use_ootb_internal-0.0.115 → computer_use_ootb_internal-0.0.116}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/run_llm.py +0 -0
  24. {computer_use_ootb_internal-0.0.115 → computer_use_ootb_internal-0.0.116}/src/computer_use_ootb_internal/computer_use_demo/tools/__init__.py +0 -0
  25. {computer_use_ootb_internal-0.0.115 → computer_use_ootb_internal-0.0.116}/src/computer_use_ootb_internal/computer_use_demo/tools/aws_request.py +0 -0
  26. {computer_use_ootb_internal-0.0.115 → computer_use_ootb_internal-0.0.116}/src/computer_use_ootb_internal/computer_use_demo/tools/base.py +0 -0
  27. {computer_use_ootb_internal-0.0.115 → computer_use_ootb_internal-0.0.116}/src/computer_use_ootb_internal/computer_use_demo/tools/bash.py +0 -0
  28. {computer_use_ootb_internal-0.0.115 → computer_use_ootb_internal-0.0.116}/src/computer_use_ootb_internal/computer_use_demo/tools/collection.py +0 -0
  29. {computer_use_ootb_internal-0.0.115 → computer_use_ootb_internal-0.0.116}/src/computer_use_ootb_internal/computer_use_demo/tools/colorful_text.py +0 -0
  30. {computer_use_ootb_internal-0.0.115 → computer_use_ootb_internal-0.0.116}/src/computer_use_ootb_internal/computer_use_demo/tools/computer.py +0 -0
  31. {computer_use_ootb_internal-0.0.115 → computer_use_ootb_internal-0.0.116}/src/computer_use_ootb_internal/computer_use_demo/tools/computer_marbot.py +0 -0
  32. {computer_use_ootb_internal-0.0.115 → computer_use_ootb_internal-0.0.116}/src/computer_use_ootb_internal/computer_use_demo/tools/edit.py +0 -0
  33. {computer_use_ootb_internal-0.0.115 → computer_use_ootb_internal-0.0.116}/src/computer_use_ootb_internal/computer_use_demo/tools/run.py +0 -0
  34. {computer_use_ootb_internal-0.0.115 → computer_use_ootb_internal-0.0.116}/src/computer_use_ootb_internal/computer_use_demo/tools/screen_capture.py +0 -0
  35. {computer_use_ootb_internal-0.0.115 → computer_use_ootb_internal-0.0.116}/src/computer_use_ootb_internal/dependency_check.py +0 -0
  36. {computer_use_ootb_internal-0.0.115 → computer_use_ootb_internal-0.0.116}/src/computer_use_ootb_internal/guard_service.py +0 -0
  37. {computer_use_ootb_internal-0.0.115 → computer_use_ootb_internal-0.0.116}/src/computer_use_ootb_internal/preparation/__init__.py +0 -0
  38. {computer_use_ootb_internal-0.0.115 → computer_use_ootb_internal-0.0.116}/src/computer_use_ootb_internal/preparation/star_rail_prepare.py +0 -0
  39. {computer_use_ootb_internal-0.0.115 → computer_use_ootb_internal-0.0.116}/src/computer_use_ootb_internal/requirements-lite.txt +0 -0
  40. {computer_use_ootb_internal-0.0.115 → computer_use_ootb_internal-0.0.116}/src/computer_use_ootb_internal/run_teachmode_ootb_args.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: computer-use-ootb-internal
3
- Version: 0.0.115
3
+ Version: 0.0.116
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.115"
7
+ version = "0.0.116"
8
8
  description = "Computer Use OOTB"
9
9
  authors = [{ name = "Siyuan Hu", email = "siyuan.hu.sg@gmail.com" }]
10
10
  requires-python = ">=3.11"
@@ -107,19 +107,29 @@ def run_service_command(command_args, check_errors=True):
107
107
 
108
108
  def install_and_start():
109
109
  """Installs and starts the Guard Service."""
110
- print(f"Attempting to install/update service: '{_SERVICE_NAME}' ('{_SERVICE_DISPLAY_NAME}')")
111
- # Use 'update' which handles install or updates display name/path if needed
112
- if run_service_command(['--startup', 'auto', 'update']): # Set startup to auto, then update
113
- print(f"\nAttempting to start service: '{_SERVICE_NAME}' (waiting a few seconds first)")
114
- time.sleep(3) # Give SCM time to register the update
115
- if run_service_command(['start']):
116
- print(f"\nService '{_SERVICE_NAME}' installed/updated and started successfully.")
110
+ print(f"Attempting to install service: '{_SERVICE_NAME}' ('{_SERVICE_DISPLAY_NAME}')")
111
+ # Call 'install' command first.
112
+ # We pass check_errors=True to stop if installation fails fundamentally.
113
+ install_success = run_service_command(['--startup', 'auto', 'install'], check_errors=True)
114
+
115
+ if install_success:
116
+ # Note: Even if install_success is True, pywin32 might have printed internal errors
117
+ # like 'service already installed'. We proceed to start anyway in that case.
118
+ print(f"\nInstallation command finished. Attempting to start service: '{_SERVICE_NAME}' (waiting a few seconds first)")
119
+ time.sleep(3) # Give SCM time to register the install/update
120
+ start_success = run_service_command(['start'], check_errors=True)
121
+
122
+ if start_success:
123
+ # Similar caveat: start might succeed according to subprocess, but pywin32 could print internal errors.
124
+ print(f"\nService '{_SERVICE_NAME}' install command executed and start command executed.")
125
+ print(f"Please verify service status in 'services.msc' and check logs.")
117
126
  else:
118
- print(f"\nWarning: Service '{_SERVICE_NAME}' installed/updated but failed to start.", file=sys.stderr)
119
- print(f" Check service logs ('C:\ProgramData\OOTBGuardService\guard.log') or Windows Event Viewer for details.", file=sys.stderr)
120
- print(f" You may need to start it manually via 'services.msc' or `net start {_SERVICE_NAME}`.")
127
+ # This path is taken if run_service_command returned False (subprocess error occurred)
128
+ print(f"\nService '{_SERVICE_NAME}' installed/updated but the 'start' command failed with an error.", file=sys.stderr)
129
+ print(f" Check output above, service logs ('C:\ProgramData\OOTBGuardService\guard_post_mode.log'), or Windows Event Viewer.", file=sys.stderr)
121
130
  else:
122
- print(f"\nService '{_SERVICE_NAME}' installation/update failed.", file=sys.stderr)
131
+ # This path is taken if the initial 'install' command failed critically (subprocess error)
132
+ print(f"\nService '{_SERVICE_NAME}' installation failed critically. See errors above.", file=sys.stderr)
123
133
 
124
134
 
125
135
  def stop_and_remove():