-
Notifications
You must be signed in to change notification settings - Fork 0
feat: integrate browser-commander for browser operations #25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Adding CLAUDE.md with task information for AI processing. This file will be removed when the task is complete. Issue: #24
Use browser-commander library utilities (CHROME_ARGS) for browser operations. Currently using browser-commander's CHROME_ARGS constants combined with server-specific args until browser-commander adds support for custom args in headless server environments. - Add browser-commander as a dependency - Import and use CHROME_ARGS from browser-commander - Maintain server-specific args (--no-sandbox, etc.) separately - Reference browser-commander issue #11 for future improvements Relates to #24 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
This reverts commit 04a4075.
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
Now working session is ended, feel free to review and add any feedback on the solution draft. |
|
link-foundation/browser-commander#11 was closed, we can now continue. |
|
🤖 AI Work Session Started Starting automated work session at 2025-12-28T05:17:31.858Z The PR has been converted to draft mode while work is in progress. This comment marks the beginning of an AI work session. Please wait working session to finish, and provide your feedback. |
Now that browser-commander v0.4.0 supports custom Chrome args via the `args` option, we can use its `launchBrowser` function directly instead of maintaining our own browser launch code. Changes: - Update browser-commander dependency from ^0.3.0 to ^0.4.0 - Use launchBrowser from browser-commander for both Puppeteer and Playwright - Pass server-specific args (--no-sandbox, etc.) via the args option - Configure headless: true for server environments - Use unique userDataDir per session to avoid conflicts This fully integrates browser-commander as requested in issue #24. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Full Integration Complete 🎉Now that browser-commander issue #11 has been resolved and v0.4.0 is released, I've updated this PR to fully integrate browser-commander for all browser operations. Changes in this update:
TestsAll CI checks are passing:
The PR is now ready for review. |
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
Now working session is ended, feel free to review and add any feedback on the solution draft. |
Summary
This PR integrates the browser-commander library for all browser operations, as requested in issue #24.
Full Integration with browser-commander
With browser-commander v0.4.0 now supporting custom Chrome args via the
argsoption (see issue #11), we can now fully use itslaunchBrowserfunction for both Puppeteer and Playwright operations.Key changes:
launchBrowserfrom browser-commander for all browser launches--no-sandbox,--disable-setuid-sandbox,--disable-dev-shm-usage) via theargsoptionheadless: truefor server environmentsuserDataDirper session to avoid conflictsChanges
package.jsonbrowser-commanderfrom^0.3.0to^0.4.0src/browser.jslaunchBrowserfrom browser-commander- Use
launchBrowserfor both Puppeteer and Playwright- Pass custom args, headless mode, and unique userDataDir
- Removed direct puppeteer/playwright imports
Test Results
All relevant tests pass:
getBrowserEnginefunction/imagewhich uses Puppeteer)Playwright tests require Playwright browsers to be installed, which is expected for CI environments without Playwright binaries.
Related Issues
🤖 Generated with Claude Code