dsh-browser-install: auto-install Playwright Chromium and bridge it for dsh-ego-browser

On load, ensures the Playwright browser target (default: chromium) is installed
via `npx --yes playwright install chromium --with-deps` (background when missing,
so profile startup is not blocked), then symlinks the installed binary at
/usr/local/bin/google-chrome-stable (+ chromium). That exact name is what
dsh-ego-browser's PATH scan and its bundled --no-sandbox wrapper both look for,
so root/Docker containers get a working agent browser with zero manual PATH,
env-var or wrapper steps. Pre-existing user binaries/wrappers are never
clobbered. Ships as a dsh bundle (plain ESM, no build step); install via
`dsh plugin --profile web add github:<you>/dsh-browser-install#main` and update
with `dsh plugin --profile web update` (branch ref resolves the tip).
This commit is contained in:
Plugin Dev committed 2026-10-01 08:36:01 +01:00
commit d2e2eaed8d
5 files changed
+520

No files matched your search

+35
View File
@@ -0,0 +1,35 @@
{
"name": "dsh-browser-install",
"version": "0.1.0",
"description": "Auto-installs Playwright Chromium (npx playwright install chromium --with-deps) into the DSH container and bridges it onto PATH so dsh-ego-browser finds it without manual env-var or wrapper steps.",
"type": "module",
"main": "index.js",
"license": "MIT",
"engines": {
"node": ">=22"
},
"dependencies": {
"@deepseek-ai/schemastery": "^3.18.3"
},
"dsh": {
"engines": {
"dsh": ">=0.1.2-rc.1"
},
"bundle": {
"patch": "./cordis.patch.yml"
}
},
"files": [
"index.js",
"cordis.patch.yml",
"README.md"
],
"keywords": [
"dsh",
"dsh-plugin",
"playwright",
"chromium",
"ego-browser",
"browser"
]
}