This file contains context information for Qwen Code about the current project.
- Added headless/headful mode control to TikTok search functionality
- Implemented optional force_headful parameter
- Maintained test environment override to always use headless mode
- Python 3.11
- FastAPI
- Scrapling (browser automation)
- pytest (testing)
- Single project structure with specify_src/ and tests/ directories
- Feature specifications in specs/ directory
- Implementation follows test-first approach
- SearchRequest: Request object with optional force_headful parameter
- ExecutionContext: Context determining if running in test environment
- BrowserMode: Enumeration for headless/headful modes
- TikTok search endpoint accepts optional force_headful boolean parameter
- Returns execution_mode in response to indicate which mode was used
- Provides standard FastAPI validation errors for invalid parameters