The pack owns its Playwright dep now, shipped at requirements.txt (standard pip format) instead of the agent repo's requirements/browser.txt. bootstrap installs packs/<name>/requirements.txt when the pack is selected; the browser binary is still downloaded by bootstrap. Update the client's install hint to the new path.
24 lines
1.2 KiB
Plaintext
24 lines
1.2 KiB
Plaintext
# Browser pack deps (optional).
|
|
#
|
|
# This file lives WITH the pack: a pack owns the python deps its skills/bridge
|
|
# need, and `scripts/bootstrap.sh` installs `packs/<name>/requirements.txt` for
|
|
# every pack the install plan selects (see PACKGEN.md, "Pack python deps"). The
|
|
# deps are lazy-imported by packs/browser/bridge/browser_client.py, so the core
|
|
# stays stdlib-only and every other bridge keeps running without them. Install
|
|
# with scripts/bootstrap.sh --browser, or by hand:
|
|
# .runtime/venv/bin/pip install -r packs/browser/requirements.txt
|
|
# PLAYWRIGHT_BROWSERS_PATH=.runtime/browser \
|
|
# .runtime/venv/bin/python -m playwright install chromium
|
|
#
|
|
# The browser binaries are NOT shipped in the wheel: `playwright install`
|
|
# downloads Chromium into PLAYWRIGHT_BROWSERS_PATH. bootstrap.sh points that at
|
|
# the checkout's .runtime/browser (the containment rule); the bridge sets the
|
|
# same env var at launch, so the binaries live with the rest of the stack. Add
|
|
# `--with-deps` to the install command on a bare host to fetch the system
|
|
# libraries Chromium needs (needs sudo).
|
|
#
|
|
# Only `chromium` is installed by default; switch bridges.browser.engine to
|
|
# firefox/webkit and run `python -m playwright install firefox`/`webkit` for
|
|
# those.
|
|
playwright==1.63.0
|