diff --git a/agent-node/VERSION b/agent-node/VERSION index bb83058..2ac9634 100644 --- a/agent-node/VERSION +++ b/agent-node/VERSION @@ -1 +1 @@ -1.0.12 +1.0.13 diff --git a/agent-node/bootstrap_installer.py b/agent-node/bootstrap_installer.py index a2d5f8e..e32c278 100644 --- a/agent-node/bootstrap_installer.py +++ b/agent-node/bootstrap_installer.py @@ -141,6 +141,18 @@ subprocess.check_call(args, cwd=install_dir) _print("Dependencies installed.") + + # New: Auto-install playwright browsers if the package is present + try: + import playwright + _print("Playwright detected. Installing chromium browser...") + subprocess.run([sys.executable, "-m", "playwright", "install", "chromium"], check=True) + _print("Playwright browsers installed.") + except ImportError: + pass # No playwright needed + except Exception as e: + _print(f"Warning: Failed to install Playwright browsers: {e}") + except Exception as e: _print(f"ERROR: Failed to install dependencies: {e}") _print("The agent might fail to start if core libraries (grpcio, psutil) are missing.")