- Applied automated linting suggestions from pre-commit hooks, primarily updating type hints (e.g., Dict -> dict) and organizing imports.
- Refactored Playwright script execution in examples/features/playwright_script_generation.py to use asyncio.create_subprocess_exec for asynchronous handling and real-time log streaming, resolving ASYNC221 lint error and improving output visibility.
Update imports in Playwright script generation and helper files to use `patchright` instead of `playwright`, aligning with current project dependencies.
Co-Authored-By: Nick Sweeting <511499+pirate@users.noreply.github.com>
Moved helper functions (replace_sensitive_data, _try_locate_and_act, PlaywrightActionError) from a multiline string within PlaywrightScriptGenerator into browser_use/agent/playwright_script_helpers.py.
This allows linters and type checkers to analyze the helper code, improving maintainability and code quality. The generator now reads the helper file content dynamically.
Co-Authored-By: Nick Sweeting <511499+pirate@users.noreply.github.com>