fix(browser): pin camoufox-js@0.11.0 and camoufox-browser@0.1.0 — no more @latest
Root cause: camoufox-browser@0.1.0 bundles camoufox-js@0.9.3 which downloads a BROKEN alpha binary (v150.0.2-alpha.26, missing libmozglue.dylib) on macOS. The newer camoufox-js@0.11.0 (Jun 4 2026) downloads STABLE builds. Changes: 1. PINNED VERSIONS (constants at top of file): - CAMOUFOX_JS_VERSION = "0.11.0" — for fetching browser binary - CAMOUFOX_BROWSER_VERSION = "0.1.0" — for daemon IPC protocol 2. run_fetch() — uses 'npx --yes camoufox-js@0.11.0 fetch' instead of 'camoufox-browser@latest install' (which called old camoufox-js) 3. Both packages share ~/Library/Caches/camoufox/ — fetch writes correct binary + version.json, daemon reads same cache 4. Removed Docker HTTP transport — no longer needed, daemon works on macOS 5. Removed reqwest dep from gyandoot-agent + gyandoot-browser 6. install.sh updated: uses camoufox-js@0.11.0 fetch + pinned npm package 7. install.sh verifies version.json exists, not just binary Clean build: 0 errors, 0 warnings No Docker dependency. No @latest. Pinned and stable.
This commit is contained in:
@@ -192,16 +192,16 @@ install_camofox_browser() {
|
||||
# Step 2: Install the npm package
|
||||
if command -v npx &>/dev/null || command -v npm &>/dev/null; then
|
||||
info "Installing npm package..."
|
||||
npm install -g camoufox-browser 2>&1 | tail -3
|
||||
npm install -g camoufox-browser@0.1.0 2>&1 | tail -3
|
||||
|
||||
info "Downloading Camoufox browser binary (this may take a while, ~662MB)..."
|
||||
npx camoufox-browser@latest install 2>&1 | tail -5
|
||||
npx camoufox-js@0.11.0 fetch 2>&1 | tail -5
|
||||
|
||||
# Verify the browser binary was actually downloaded
|
||||
if ls ~/.cache/camoufox/camoufox 2>/dev/null; then
|
||||
ok "Camoufox browser binary downloaded (~/.cache/camoufox/)"
|
||||
else
|
||||
warn "Browser binary not found at ~/.cache/camoufox/. May need manual 'npx camoufox-browser@latest install'"
|
||||
warn "Browser binary not found at ~/.cache/camoufox/. May need manual 'npx camoufox-js@0.11.0 fetch'"
|
||||
fi
|
||||
|
||||
ok "Camoufox browser npm package installed"
|
||||
@@ -213,7 +213,7 @@ install_camofox_browser() {
|
||||
ghcr.io/nousresearch/camoufox-browser:latest 2>&1 | tail -3
|
||||
ok "Camoufox browser installed (Docker)"
|
||||
else
|
||||
warn "Neither npm nor docker found. Install manually: npm install -g camoufox-browser"
|
||||
warn "Neither npm nor docker found. Install manually: npm install -g camoufox-browser@0.1.0"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user