-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add browser manager and explicit browser selection #454
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
Open
gregpr07
wants to merge
15
commits into
main
Choose a base branch
from
codex/browser-manager-impl
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
2f3ac28
Add Python browser manager
gregpr07 dffcca0
Add Browser Use cloud auth login
gregpr07 73743ed
Add local profile targeting and browser cleanup
gregpr07 e573f5d
Add safe manual Browser Use key import
gregpr07 2aaca8b
Simplify LLM browser interface
gregpr07 8281995
Make managed browser selection explicit
gregpr07 2571d25
Add repo-local browser-harness dev launcher
gregpr07 2e8613e
Simplify shared browser manager semantics
gregpr07 ded09ca
Harden browser manager runtime
gregpr07 07ea791
Tighten harness setup diagnostics
gregpr07 cc2dbc2
Clean up browser manager PR edge cases
gregpr07 64af337
Reduce auth status output surface
gregpr07 134e7fe
Prepare browser-harness package releases
gregpr07 0cf772b
Shorten browser-harness install guide
gregpr07 07e56f7
Remove branch test churn
gregpr07 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| name: release | ||
|
|
||
| on: | ||
| release: | ||
| types: [published] | ||
|
|
||
| jobs: | ||
| publish: | ||
| name: publish to PyPI | ||
| runs-on: ubuntu-latest | ||
| environment: pypi | ||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: "3.12" | ||
| - name: Build distributions | ||
| run: | | ||
| python -m pip install --upgrade build | ||
| python -m build | ||
| - name: Publish distributions | ||
| uses: pypa/gh-action-pypi-publish@release/v1 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,6 +2,9 @@ __pycache__/ | |
| *.pyc | ||
| *.log | ||
| .env | ||
| .browser-harness-dev/ | ||
| build/ | ||
| dist/ | ||
| uv.lock | ||
| *.egg-info/ | ||
| .idea/ | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| #!/usr/bin/env bash | ||
| set -euo pipefail | ||
|
|
||
| ROOT="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)" | ||
| DEV_ID="$(printf '%s' "$ROOT" | cksum | awk '{print $1}')" | ||
|
|
||
| export BH_MANAGER_ROOT="${BH_MANAGER_ROOT:-/tmp/bhm-dev-$DEV_ID}" | ||
| export BH_MANAGER_SOCKET="${BH_MANAGER_SOCKET:-$BH_MANAGER_ROOT/manager.sock}" | ||
|
|
||
| if [ -x "$ROOT/.venv/bin/python" ]; then | ||
| exec "$ROOT/.venv/bin/python" -m browser_harness.run "$@" | ||
| fi | ||
|
|
||
| if command -v uv >/dev/null 2>&1; then | ||
| exec uv --directory "$ROOT" run python -m browser_harness.run "$@" | ||
| fi | ||
|
|
||
| export PYTHONPATH="$ROOT/src${PYTHONPATH:+:$PYTHONPATH}" | ||
| exec python3 -m browser_harness.run "$@" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P1: Release workflow uses mutable action tags instead of immutable commit SHAs, creating CI/CD supply-chain risk for PyPI publishing.
Prompt for AI agents