opencode-cursor-agent/internal/providers/geminiweb
王性驊 3d5f2d91c0 feat: Switch to playwright-go for better DOM automation
Major refactor using Playwright (pure Go):
- Add playwright-go dependency (v0.5700.1)
- Create PlaywrightProvider with auto-wait for elements
- Use LaunchPersistentContext for session persistence
- Implement Locator-based element finding (auto-wait)
- Fill input using Playwright's built-in methods
- Add fallback selectors for input fields
- Better error messages with page URL and title

Key improvements over Rod:
- Auto-wait for elements (solves 'input field not found')
- More mature browser automation library
- Better documentation and examples
- Based on project-golem's proven strategies

Installation:
- Playwright driver and Chromium downloaded to ~/Library/Caches/ms-playwright/
- ~160MB download (one-time setup)
2026-04-03 01:20:42 +08:00
..
browser.go feat: Add GeminiWeb provider foundation 2026-04-02 22:45:41 +08:00
browser_manager.go refactor: Complete rewrite of GeminiWeb provider 2026-04-03 01:05:54 +08:00
page.go fix: Add debug output and fallback selectors for input field detection 2026-04-03 01:11:02 +08:00
playwright_provider.go feat: Switch to playwright-go for better DOM automation 2026-04-03 01:20:42 +08:00
pool.go feat: Add GeminiWeb provider foundation 2026-04-02 22:45:41 +08:00
provider.go refactor: Complete rewrite of GeminiWeb provider 2026-04-03 01:05:54 +08:00