Spaces:
Paused
Paused
Commit History
-
docs: final deliverables index
OpenCode Integration6249e4f -
docs: operations & maintenance notes (security review, known limitations, restart procedures)
OpenCode Integratione586362 -
docs: add architecture diagrams, streaming analysis, deployment, testing notes
OpenCode Integration155f9f0 -
feat: production-ready embedded terminal (Python PTY + xterm.js)
OpenCode IntegrationArchitecture: * Single FastAPI gateway on :7860 (HF app_port) proxies everything * Persistent /bin/bash -i inside the same container (Python pty module) * WebSocket bridge to xterm.js at /terminal/ws * HTTP/WS reverse proxy to upstream opencode serve on :4096 (chat preserved) * VSCode-style integrated webapp with Terminal + Chat tabs Files added: * backend/app/main.py - FastAPI gateway + reverse proxy * backend/app/pty_service.py - Linux PTY service (fork/exec, asyncio bridge) * backend/app/opencode_proxy.py - HTTP/WS reverse proxy helpers * backend/app/webapp.py - VSCode-style webapp (xterm.js, dark theme) * requirements.txt - fastapi, uvicorn, httpx, websockets, pexpect, ptyprocess * docs/ARCHITECTURE.md - Design rationale Files changed: * entrypoint.sh - boot upstream opencode serve then exec uvicorn * Dockerfile - add python3-pip + backend/ copy * docker-compose.yml - app_port 7860 with proper healthcheck * README.md - new …64e84d5