Spaces:
Runtime error
Runtime error
Commit History
-
Remove Flow agent from stack (extension, server, gateway, monitor tab)
akashyadav758 +1: Claude Opus 4.8 (1M context)Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>23a7459 -
Open monitor UI on private Space (owner was locked out of own live view)
akashyadav758 +1: Claude Opus 4.7 (1M context)Gating / and /api/* on the API key locked the Space owner out: a private HF Space serves its subdomain behind HF auth, and the browser can't attach ?key= there, so the UI returned 401. The Space being private already restricts who can reach it to the owner, so the UI (/, /api/*, /chrome.log) is open again. Only the programmatic AI gateway (/gpt /gemini /flow) and /logs stay key-gated. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>6d42e1f -
Fix gateway auth on private Space: check ?key=/cookie before Authorization
akashyadav758 +1: Claude Opus 4.7 (1M context)A private HF Space reserves the Authorization: Bearer header for its own HF token, which collided with the gateway reading the API_KEY from the same header (deadlock: send HF token -> "unauthorized"; send API_KEY -> HF 404). Reorder authOK() to read ?key= and the apikey cookie first, falling back to Authorization only when both are absent. Backward-compatible for public Spaces. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>23bf5e5 -
Harden monitor (gate all routes), swap ChatGPT backend to free-Chatgpt-api, clean repo
akashyadav758 +1: Claude Opus 4.8 (1M context)- Security: gate /, /api/*, /chrome.log behind API_KEY (Bearer / ?key= / apikey cookie). Previously these were public — anyone could view+drive the logged-in ChatGPT/Gemini/Google sessions. This was the likely "abusive" flag cause. - ChatGPT backend: replace chatgpt-free-api with the free-Chatgpt-api rewrite (drop-in: same 127.0.0.1:9225, same /api/chat + /v1/chat/completions). Update Dockerfile COPY paths. - Cleanup: drop leftover per-service Dockerfiles, redundant sub-READMEs, dev-only docs/test scripts, the prebuilt linux binary, and cdp_* debug scripts. - Docs: fix references, mark all routes key-gated, note the Space is now private. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>5c7f4b5 -
Add API-key-gated /logs/{chatgpt,gemini,flow,monitor} endpoint for diagnostics
akashyadav758 +1: Claude Opus 4.8 (1M context)Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>888149c -
Run all 3 backend servers in-container behind a single API-key gateway
akashyadav758 +1: Claude Opus 4.8 (1M context)The HF Space previously ran only Chrome + extensions + monitor; the ChatGPT/ Gemini/Flow API servers existed only in docker-compose (self-host). Because the extensions dial their servers on hardcoded 127.0.0.1:9225/9226/9227, the servers must share Chrome's localhost — a separate Space can't reach them. So: - Dockerfile builds the chatgpt (Go) + gemini (Go) binaries and installs the flow (Python/FastAPI) deps into the chrome image. - start_hf.sh launches all three on localhost alongside Chrome. - monitor/main.go doubles as a reverse-proxy gateway on :3001, routing /gpt /gemini /flow to 127.0.0.1:9225/8000/8101, gated by an API_KEY bearer token (fail-closed). - docker-compose.yml collapses to the single chrome service (servers are now baked in; separate containers would collide on the same ports). - Add cryptography to flow requirements (lazy-imported in cli/api.py). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>3666689
-
Point Flow tab to https://labs.google/fx
akashyadav758 +1: Claude Opus 4.8 (1M context)Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>dff55ff -
Dockerize stack, strip watermarking, add navigator monitor
akashyadav758 +1: Claude Opus 4.8 (1M context)Compose the headless-Chrome monitor with the three backend servers and make the live monitor a full in-browser navigator. Infra: - Add docker-compose.yml wiring chrome + chatgpt + gemini + flow on a shared loopback (network_mode: service:chrome); only chrome publishes. - Add Dockerfiles for chatgpt-free-api and flow-agent. - flow: run the FastAPI API on 8101 so it no longer collides with the ExtensionBridge HTTP callback on 8100 (was crash-looping). - Update extension cookie-WS ports: gemini 9226, flow 9227. Cleanup: - Remove watermark code from flow-agent (omniflash/watermark.py) and gemini (gemini/watermark.go); drop ffmpeg usage. Monitor navigator: - Tabs are now discovered live from CDP (known services first) instead of being hardcoded. - Add address bar + back/forward/reload and new/close-tab, backed by new /api/navigate, /api/reload, /api/back, /api/forward, /api/newtab and /api/closetab endpoints. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.co…c6e6dac