computer-use-ootb-internal 0.0.180__tar.gz → 0.0.182__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 (44) hide show
  1. {computer_use_ootb_internal-0.0.180 → computer_use_ootb_internal-0.0.182}/PKG-INFO +1 -1
  2. {computer_use_ootb_internal-0.0.180 → computer_use_ootb_internal-0.0.182}/pyproject.toml +1 -1
  3. {computer_use_ootb_internal-0.0.180 → computer_use_ootb_internal-0.0.182}/src/computer_use_ootb_internal/guard_service.py +26 -7
  4. {computer_use_ootb_internal-0.0.180 → computer_use_ootb_internal-0.0.182}/.gitignore +0 -0
  5. {computer_use_ootb_internal-0.0.180 → computer_use_ootb_internal-0.0.182}/src/computer_use_ootb_internal/README.md +0 -0
  6. {computer_use_ootb_internal-0.0.180 → computer_use_ootb_internal-0.0.182}/src/computer_use_ootb_internal/__init__.py +0 -0
  7. {computer_use_ootb_internal-0.0.180 → computer_use_ootb_internal-0.0.182}/src/computer_use_ootb_internal/app_teachmode.py +0 -0
  8. {computer_use_ootb_internal-0.0.180 → computer_use_ootb_internal-0.0.182}/src/computer_use_ootb_internal/computer_use_demo/animation/click_animation.py +0 -0
  9. {computer_use_ootb_internal-0.0.180 → computer_use_ootb_internal-0.0.182}/src/computer_use_ootb_internal/computer_use_demo/animation/icons8-select-cursor-transparent-96.gif +0 -0
  10. {computer_use_ootb_internal-0.0.180 → computer_use_ootb_internal-0.0.182}/src/computer_use_ootb_internal/computer_use_demo/animation/test_animation.py +0 -0
  11. {computer_use_ootb_internal-0.0.180 → computer_use_ootb_internal-0.0.182}/src/computer_use_ootb_internal/computer_use_demo/executor/teachmode_executor.py +0 -0
  12. {computer_use_ootb_internal-0.0.180 → computer_use_ootb_internal-0.0.182}/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.180 → computer_use_ootb_internal-0.0.182}/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.180 → computer_use_ootb_internal-0.0.182}/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.180 → computer_use_ootb_internal-0.0.182}/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.180 → computer_use_ootb_internal-0.0.182}/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.180 → computer_use_ootb_internal-0.0.182}/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.180 → computer_use_ootb_internal-0.0.182}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/llm_utils.py +0 -0
  19. {computer_use_ootb_internal-0.0.180 → computer_use_ootb_internal-0.0.182}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/oai.py +0 -0
  20. {computer_use_ootb_internal-0.0.180 → computer_use_ootb_internal-0.0.182}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/run_litellm.py +0 -0
  21. {computer_use_ootb_internal-0.0.180 → computer_use_ootb_internal-0.0.182}/src/computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/run_llm.py +0 -0
  22. {computer_use_ootb_internal-0.0.180 → computer_use_ootb_internal-0.0.182}/src/computer_use_ootb_internal/computer_use_demo/tools/__init__.py +0 -0
  23. {computer_use_ootb_internal-0.0.180 → computer_use_ootb_internal-0.0.182}/src/computer_use_ootb_internal/computer_use_demo/tools/aws_request.py +0 -0
  24. {computer_use_ootb_internal-0.0.180 → computer_use_ootb_internal-0.0.182}/src/computer_use_ootb_internal/computer_use_demo/tools/base.py +0 -0
  25. {computer_use_ootb_internal-0.0.180 → computer_use_ootb_internal-0.0.182}/src/computer_use_ootb_internal/computer_use_demo/tools/bash.py +0 -0
  26. {computer_use_ootb_internal-0.0.180 → computer_use_ootb_internal-0.0.182}/src/computer_use_ootb_internal/computer_use_demo/tools/collection.py +0 -0
  27. {computer_use_ootb_internal-0.0.180 → computer_use_ootb_internal-0.0.182}/src/computer_use_ootb_internal/computer_use_demo/tools/colorful_text.py +0 -0
  28. {computer_use_ootb_internal-0.0.180 → computer_use_ootb_internal-0.0.182}/src/computer_use_ootb_internal/computer_use_demo/tools/computer.py +0 -0
  29. {computer_use_ootb_internal-0.0.180 → computer_use_ootb_internal-0.0.182}/src/computer_use_ootb_internal/computer_use_demo/tools/computer_marbot.py +0 -0
  30. {computer_use_ootb_internal-0.0.180 → computer_use_ootb_internal-0.0.182}/src/computer_use_ootb_internal/computer_use_demo/tools/edit.py +0 -0
  31. {computer_use_ootb_internal-0.0.180 → computer_use_ootb_internal-0.0.182}/src/computer_use_ootb_internal/computer_use_demo/tools/run.py +0 -0
  32. {computer_use_ootb_internal-0.0.180 → computer_use_ootb_internal-0.0.182}/src/computer_use_ootb_internal/computer_use_demo/tools/screen_capture.py +0 -0
  33. {computer_use_ootb_internal-0.0.180 → computer_use_ootb_internal-0.0.182}/src/computer_use_ootb_internal/dependency_check.py +0 -0
  34. {computer_use_ootb_internal-0.0.180 → computer_use_ootb_internal-0.0.182}/src/computer_use_ootb_internal/preparation/__init__.py +0 -0
  35. {computer_use_ootb_internal-0.0.180 → computer_use_ootb_internal-0.0.182}/src/computer_use_ootb_internal/preparation/excel_prepare.py +0 -0
  36. {computer_use_ootb_internal-0.0.180 → computer_use_ootb_internal-0.0.182}/src/computer_use_ootb_internal/preparation/powerpoint_prepare.py +0 -0
  37. {computer_use_ootb_internal-0.0.180 → computer_use_ootb_internal-0.0.182}/src/computer_use_ootb_internal/preparation/pr_prepare.py +0 -0
  38. {computer_use_ootb_internal-0.0.180 → computer_use_ootb_internal-0.0.182}/src/computer_use_ootb_internal/preparation/star_rail_prepare.py +0 -0
  39. {computer_use_ootb_internal-0.0.180 → computer_use_ootb_internal-0.0.182}/src/computer_use_ootb_internal/preparation/word_prepare.py +0 -0
  40. {computer_use_ootb_internal-0.0.180 → computer_use_ootb_internal-0.0.182}/src/computer_use_ootb_internal/requirements-lite.txt +0 -0
  41. {computer_use_ootb_internal-0.0.180 → computer_use_ootb_internal-0.0.182}/src/computer_use_ootb_internal/run_teachmode_ootb_args.py +0 -0
  42. {computer_use_ootb_internal-0.0.180 → computer_use_ootb_internal-0.0.182}/src/computer_use_ootb_internal/service_manager.py +0 -0
  43. {computer_use_ootb_internal-0.0.180 → computer_use_ootb_internal-0.0.182}/src/computer_use_ootb_internal/signal_connection.py +0 -0
  44. {computer_use_ootb_internal-0.0.180 → computer_use_ootb_internal-0.0.182}/src/computer_use_ootb_internal/test_autogui.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: computer-use-ootb-internal
3
- Version: 0.0.180
3
+ Version: 0.0.182
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.180"
7
+ version = "0.0.182"
8
8
  description = "Computer Use OOTB"
9
9
  authors = [{ name = "Siyuan Hu", email = "siyuan.hu.sg@gmail.com" }]
10
10
  requires-python = ">=3.11"
@@ -261,6 +261,28 @@ class GuardService(win32serviceutil.ServiceFramework):
261
261
  self.server_thread.start()
262
262
  self.log_info(f"Web server thread started, listening on {_LISTEN_HOST}:{_LISTEN_PORT}.")
263
263
 
264
+ # Ensure logon tasks exist for predefined guest users on service start
265
+ self.log_info("Ensuring logon tasks exist for predefined guest users (guest01-guest10)...")
266
+ predefined_guest_users = [f"guest{i:02d}" for i in range(1, 11)] # Creates guest01, guest02, ..., guest10
267
+ self.log_info(f"Target guest users: {predefined_guest_users}")
268
+
269
+ tasks_created_count = 0
270
+ tasks_failed_count = 0
271
+ for username in predefined_guest_users:
272
+ try:
273
+ # Call the task creation function directly
274
+ success = self.create_or_update_logon_task(username)
275
+ if success:
276
+ tasks_created_count += 1
277
+ else:
278
+ tasks_failed_count += 1
279
+ # Error is already logged within create_or_update_logon_task
280
+ except Exception as task_create_err:
281
+ tasks_failed_count += 1
282
+ self.log_error(f"SvcDoRun: Unexpected exception creating/updating task for user {username} on startup: {task_create_err}", exc_info=True)
283
+
284
+ self.log_info(f"Finished checking predefined guest users. Tasks created/updated: {tasks_created_count}, Failures: {tasks_failed_count}")
285
+
264
286
  self.log_info(f"{_SERVICE_NAME} running. Waiting for stop signal.")
265
287
  # Keep the main service thread alive waiting for stop signal
266
288
  win32event.WaitForSingleObject(self.hWaitStop, win32event.INFINITE)
@@ -835,16 +857,13 @@ class GuardService(win32serviceutil.ServiceFramework):
835
857
  $action = New-ScheduledTaskAction -Execute '{safe_action_executable}' -Argument '{safe_action_arguments}'
836
858
  {working_directory_setting}
837
859
 
838
- # Trigger: On session connect (Event ID 21)
839
- $logName = 'Microsoft-Windows-TerminalServices-LocalSessionManager/Operational'
840
- $source = 'Microsoft-Windows-TerminalServices-LocalSessionManager'
841
- $eventIDs = @(21, 25)
842
- $trigger = New-ScheduledTaskTrigger -Event -LogName $logName -Source $source -EventId $eventIDs[0]
843
- # Optional Delay: -Delay 'PT15S'
860
+ # Trigger: At Logon for the specified user
861
+ $trigger = New-ScheduledTaskTrigger -AtLogOn
862
+ # Optional: Add delay if needed (e.g., after desktop loads)
844
863
  # $trigger.Delay = 'PT15S'
845
864
 
846
865
  $settings = New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -DontStopIfGoingOnBatteries -ExecutionTimeLimit (New-TimeSpan -Days 9999) -RestartCount 3 -RestartInterval (New-TimeSpan -Minutes 1)
847
- $description = "Triggers OOTB Guard Service for user {username} upon session connect via internal signal." # Updated description
866
+ $description = "Triggers OOTB Guard Service for user {username} upon logon via internal signal." # Updated description
848
867
 
849
868
  # Unregister existing task first (force)
850
869
  Unregister-ScheduledTask -TaskName $taskName -Confirm:$false -ErrorAction SilentlyContinue