Adds support for .jsonl file extension in the FileSystem class to enable
code-use mode to work with JSON Lines files (where each line is a valid
JSON object).
Changes:
- Added JsonlFile class implementing BaseFile interface
- Registered 'jsonl' extension in _file_types dictionary
- Updated external file reading to include .jsonl files
- Added state restoration support for JsonlFile
- Added comprehensive test coverage for JSONL file operations
Fixes issue where code agent rejected filenames like 'WebVoyager_data.jsonl'
with error "Invalid filename format. Must be alphanumeric with supported
extension."
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Addressed @pirate's feedback to fix lint errors by running pre-commit.
This reformatted 242 files across the codebase for consistency.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
The markdown-pdf dependency had a transitive dependency on pymupdf (AGPL-3.0),
which conflicts with browser-use's MIT license and could require commercial
users to open-source their entire application.
This change:
- Replaces markdown-pdf==1.5 with reportlab>=4.0.0 (BSD licensed)
- Updates PdfFile.sync_to_disk_sync() to use reportlab for PDF generation
- Maintains the same API surface with no breaking changes
- Supports basic markdown formatting (headers, paragraphs)
- All existing tests continue to pass
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Added new file types: JsonFile and CsvFile to the file system.
- Updated read_file method to handle external files with .json and .csv extensions.
- Modified write_file action to allow .json and .csv file extensions in addition to .md and .txt.
- Introduced pypdf dependency for PDF file handling.
This update improves the flexibility of file operations within the application.
- Added functionality to remove existing data directory before creating a new one, ensuring a clean state for operations.
- Introduced `shutil` for directory removal.
- Enhanced logging in the Agent class to inform users about available attachments after task completion.
- Revised system prompt guidelines to clarify the use of text and files_to_display in the done action.