computer-use-ootb-internal 0.0.186__py3-none-any.whl → 0.0.187__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.
@@ -55,6 +55,20 @@ except Exception as log_setup_e:
55
55
  print(f"FATAL: Failed to set up logging: {log_setup_e}")
56
56
  # Fallback logging might be needed here if file logging fails
57
57
 
58
+ # --- Get the root logger ---
59
+ root_logger = logging.getLogger()
60
+ root_logger.setLevel(log_level) # Ensure root logger level is set
61
+
62
+ # --- File Handler (as before) ---
63
+ file_handler = RotatingFileHandler(log_file, maxBytes=5*1024*1024, backupCount=2, encoding='utf-8')
64
+ file_handler.setFormatter(logging.Formatter(log_format))
65
+ root_logger.addHandler(file_handler)
66
+
67
+ # --- Console Handler (New) ---
68
+ console_handler = logging.StreamHandler(sys.stdout) # Log to standard output
69
+ console_handler.setFormatter(logging.Formatter(log_format))
70
+ root_logger.addHandler(console_handler)
71
+
58
72
  # --- End App Logging Setup ---
59
73
 
60
74
  app = FastAPI()
@@ -85,8 +85,15 @@ def run_preparation(state):
85
85
  cmd = ['cmd', '/c', 'start', '/max', 'excel']
86
86
 
87
87
  log.info(f"Executing command: {' '.join(cmd)}")
88
+ print(f"[DEBUG] Attempting command in excel_prepare: {' '.join(cmd)}")
88
89
  result = subprocess.run(cmd, check=False, capture_output=True, text=True, creationflags=subprocess.CREATE_NO_WINDOW)
89
90
 
91
+ # ADDED PRINTS for result
92
+ print(f"[DEBUG] excel_prepare command result:")
93
+ print(f"[DEBUG] Return Code: {result.returncode}")
94
+ print(f"[DEBUG] Stdout: {result.stdout.strip() if result.stdout else ''}")
95
+ print(f"[DEBUG] Stderr: {result.stderr.strip() if result.stderr else ''}")
96
+
90
97
  if result.returncode == 0:
91
98
  log.info(f"Successfully executed command for Excel.")
92
99
  else:
@@ -87,8 +87,15 @@ def run_preparation(state):
87
87
  cmd = ['cmd', '/c', 'start', '/max', 'powerpnt']
88
88
 
89
89
  log.info(f"Executing command: {' '.join(cmd)}")
90
+ print(f"[DEBUG] Attempting command in powerpoint_prepare: {' '.join(cmd)}")
90
91
  result = subprocess.run(cmd, check=False, capture_output=True, text=True, creationflags=subprocess.CREATE_NO_WINDOW)
91
92
 
93
+ # ADDED PRINTS for result
94
+ print(f"[DEBUG] powerpoint_prepare command result:")
95
+ print(f"[DEBUG] Return Code: {result.returncode}")
96
+ print(f"[DEBUG] Stdout: {result.stdout.strip() if result.stdout else ''}")
97
+ print(f"[DEBUG] Stderr: {result.stderr.strip() if result.stderr else ''}")
98
+
92
99
  if result.returncode == 0:
93
100
  log.info(f"Successfully executed command for PowerPoint.")
94
101
  else:
@@ -88,8 +88,15 @@ def run_preparation(state):
88
88
  cmd = ['cmd', '/c', 'start', '/max', '""', pr_executable]
89
89
 
90
90
  log.info(f"Executing command: {' '.join(cmd)}")
91
+ print(f"[DEBUG] Attempting command in pr_prepare: {' '.join(cmd)}")
91
92
  result = subprocess.run(cmd, check=False, capture_output=True, text=True, creationflags=subprocess.CREATE_NO_WINDOW)
92
93
 
94
+ # ADDED PRINTS for result
95
+ print(f"[DEBUG] pr_prepare command result:")
96
+ print(f"[DEBUG] Return Code: {result.returncode}")
97
+ print(f"[DEBUG] Stdout: {result.stdout.strip() if result.stdout else ''}")
98
+ print(f"[DEBUG] Stderr: {result.stderr.strip() if result.stderr else ''}")
99
+
93
100
  if result.returncode == 0:
94
101
  log.info(f"Successfully executed command for Premiere Pro.")
95
102
  else:
@@ -85,8 +85,15 @@ def run_preparation(state):
85
85
  cmd = ['cmd', '/c', 'start', '/max', 'winword']
86
86
 
87
87
  log.info(f"Executing command: {' '.join(cmd)}")
88
+ print(f"[DEBUG] Attempting command in word_prepare: {' '.join(cmd)}")
88
89
  result = subprocess.run(cmd, check=False, capture_output=True, text=True, creationflags=subprocess.CREATE_NO_WINDOW)
89
90
 
91
+ # ADDED PRINTS for result
92
+ print(f"[DEBUG] word_prepare command result:")
93
+ print(f"[DEBUG] Return Code: {result.returncode}")
94
+ print(f"[DEBUG] Stdout: {result.stdout.strip() if result.stdout else ''}")
95
+ print(f"[DEBUG] Stderr: {result.stderr.strip() if result.stderr else ''}")
96
+
90
97
  if result.returncode == 0:
91
98
  log.info(f"Successfully executed command for Word.")
92
99
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: computer-use-ootb-internal
3
- Version: 0.0.186
3
+ Version: 0.0.187
4
4
  Summary: Computer Use OOTB
5
5
  Author-email: Siyuan Hu <siyuan.hu.sg@gmail.com>
6
6
  Requires-Python: >=3.11
@@ -1,6 +1,6 @@
1
1
  computer_use_ootb_internal/README.md,sha256=FxpW95lyub2iX73ZDfK6ML7SdEKg060H5I6Grub7li4,31
2
2
  computer_use_ootb_internal/__init__.py,sha256=Nqnn8clbgv-5l0PgxcTOldg8mkMKrFn4TvPL-rYUUGg,1
3
- computer_use_ootb_internal/app_teachmode.py,sha256=zGccyiqOnid8Yntm2F5Yvj6HA5Z2CoE9IqsxRZdieUg,27548
3
+ computer_use_ootb_internal/app_teachmode.py,sha256=-gNhMCO9WdIh9WJIBwvVeysItnZooaPge7zXY6QYH6I,28120
4
4
  computer_use_ootb_internal/dependency_check.py,sha256=y8RMEP6RXQzTgU1MS_1piBLtz4J-Hfn9RjUZg59dyvo,1333
5
5
  computer_use_ootb_internal/guard_service.py,sha256=8tJA7MAZgzqfTXHtbiNVwUCQj_dkHg3vDmgisd5TyIM,51642
6
6
  computer_use_ootb_internal/requirements-lite.txt,sha256=5DAHomz4A_P2BmTIXNkNqkHbnIF0AyZ4_1XAlb1LaYs,290
@@ -34,12 +34,12 @@ computer_use_ootb_internal/computer_use_demo/tools/edit.py,sha256=b0PwUitxckHCQq
34
34
  computer_use_ootb_internal/computer_use_demo/tools/run.py,sha256=xhXdnBK1di9muaO44CEirL9hpGy3NmKbjfMpyeVmn8Y,1595
35
35
  computer_use_ootb_internal/computer_use_demo/tools/screen_capture.py,sha256=L8qfvtUkPPQGt92N-2Zfw5ZTDBzLsDps39uMnX3_uSA,6857
36
36
  computer_use_ootb_internal/preparation/__init__.py,sha256=AgtGHcBpiTkxJjF0xwcs3yyQ6SyUvhL3G0vD2XO-zJw,63
37
- computer_use_ootb_internal/preparation/excel_prepare.py,sha256=YJMdIepwhgEjcdb6rFMizUlpGViIuZ6ISsN3JlMc0c0,4690
38
- computer_use_ootb_internal/preparation/powerpoint_prepare.py,sha256=RQItrh2l4CScxZjjAlLKIxGXWvFbj3UKB09nKEcX38I,4927
39
- computer_use_ootb_internal/preparation/pr_prepare.py,sha256=b1OBpMiHGg5kbjT9k9qsCMVKmVeP4neGBSTKBRT9uqE,5258
37
+ computer_use_ootb_internal/preparation/excel_prepare.py,sha256=sKGXAuvq8eV9NTheQiw4XxZbzG61HyzU_FxIm4vMOV0,5115
38
+ computer_use_ootb_internal/preparation/powerpoint_prepare.py,sha256=_6WvTRSFcaai7itgbOeqftEFKDTM4nx9XV4TdtjKeUo,5362
39
+ computer_use_ootb_internal/preparation/pr_prepare.py,sha256=gb3mj9M6-ZPUO-XofiQBEj84N4KV_QFTSLOvgcxyGm4,5677
40
40
  computer_use_ootb_internal/preparation/star_rail_prepare.py,sha256=r0b19M_c1sXkN3_MRFjql8w_ThC9nZUe8zbSLYUvKS8,4635
41
- computer_use_ootb_internal/preparation/word_prepare.py,sha256=XhbJQVGUx-InsHUt2MVY7wvlJEa-J-4qqYXqJ8UcV6g,4685
42
- computer_use_ootb_internal-0.0.186.dist-info/METADATA,sha256=vZVGdzQ8dwc5lYW5JB5oZdIMqy6Hk_1hVc4Jh6HX10Y,1048
43
- computer_use_ootb_internal-0.0.186.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
44
- computer_use_ootb_internal-0.0.186.dist-info/entry_points.txt,sha256=bXfyAU_qq-G1EiEgAQEioXvgEdRCFxaTooqdDD9Y4OA,258
45
- computer_use_ootb_internal-0.0.186.dist-info/RECORD,,
41
+ computer_use_ootb_internal/preparation/word_prepare.py,sha256=P4Fk52mIOdHxQ8ZghGJUxClPt0xoGCFbgwdhKkfAe4c,5108
42
+ computer_use_ootb_internal-0.0.187.dist-info/METADATA,sha256=FhSNpbNt0J7L1PW1hEdaeC4h4oiTSTJuLmSgSnzl9Lk,1048
43
+ computer_use_ootb_internal-0.0.187.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
44
+ computer_use_ootb_internal-0.0.187.dist-info/entry_points.txt,sha256=bXfyAU_qq-G1EiEgAQEioXvgEdRCFxaTooqdDD9Y4OA,258
45
+ computer_use_ootb_internal-0.0.187.dist-info/RECORD,,