bridges: let the browser bridge use an installed browser
Add `bridges.browser.channel` and `bridges.browser.executable_path` so a host can point the bridge at an already-installed Chrome/Chromium (a Playwright channel such as `chrome`/`msedge`, or a specific binary) instead of Playwright's managed build. `executable_path` wins when both are set. This is the no-download escape hatch for hosts where the browser CDN is unreachable or unusable. - `BrowserDriver` carries `channel`/`executable_path` and passes them to `launch_persistent_context` when set, so the managed download is skipped. - `BrowserBridge` reads both from its config block; `config.example.json` documents them. - Verified live: launching an installed Chromium via `executable_path` with an empty browsers path drives a real page with no managed download.
This commit is contained in:
1 parent
e4961ef492
commit
3a5b90b1cb
6 files changed
+54
-7
No files matched your search
+3
-1
@@ -196,13 +196,15 @@
|
||||
"timeout": 30
|
||||
},
|
||||
"browser": {
|
||||
"_comment": "Browser bridge: real browser automation via Playwright — open a URL, read a page's text/links, take a screenshot, and click/fill/press/select to complete a flow — behind one uniform local JSON API, so skill bodies never bundle a browser stack. Disabled by default because it needs the optional Playwright deps + browser binaries: install with `scripts/bootstrap.sh --browser` (browsers land under .runtime/browser). The bridge keeps a PERSISTENT profile under .runtime/browser/profile, so logins/cookies survive across calls and restarts (POST /reset with purge=true wipes it); `engine` is chromium|firefox|webkit and `headless` false shows the window. Skills call it at http://host:port (derived from this block; no top-level duplicate). Binds localhost only; an optional `token` is required in the X-Semif-Token header when set. A missing Playwright/browser is a 503 install hint, never a startup failure (the other bridges keep running).",
|
||||
"_comment": "Browser bridge: real browser automation via Playwright — open a URL, read a page's text/links, take a screenshot, and click/fill/press/select to complete a flow — behind one uniform local JSON API, so skill bodies never bundle a browser stack. Disabled by default because it needs the optional Playwright deps + browser binaries: install with `scripts/bootstrap.sh --browser` (browsers land under .runtime/browser). The bridge keeps a PERSISTENT profile under .runtime/browser/profile, so logins/cookies survive across calls and restarts (POST /reset with purge=true wipes it); `engine` is chromium|firefox|webkit and `headless` false shows the window. Skills call it at http://host:port (derived from this block; no top-level duplicate). Binds localhost only; an optional `token` is required in the X-Semif-Token header when set. A missing Playwright/browser is a 503 install hint, never a startup failure (the other bridges keep running). Set `channel` (e.g. chrome/msedge) or `executable_path` (a browser binary) to use an already-installed browser and skip Playwright's managed download entirely; `executable_path` wins if both are set.",
|
||||
"enabled": false,
|
||||
"host": "127.0.0.1",
|
||||
"port": 5232,
|
||||
"token": "",
|
||||
"engine": "chromium",
|
||||
"headless": true,
|
||||
"channel": "",
|
||||
"executable_path": "",
|
||||
"profile_dir": "",
|
||||
"browsers_path": "",
|
||||
"screenshot_dir": "",
|
||||
|
||||
Reference in new issue
Block a user