Added
- 🔍 Port detection (
GET /ports) — discovers TCP ports listening on localhost, scoped to descendant processes of open-terminal (servers started via the terminal or/execute). Cross-platform: parses/proc/net/tcpon Linux,lsofon macOS,netstaton Windows. Zero new dependencies. - 🔀 Port proxy (
/proxy/{port}/{path}) — reverse-proxies HTTP requests tolocalhost:{port}, enabling browser access to servers running inside the terminal environment. Supports all HTTP methods, forwards headers and body, returns 502 on connection refused. Uses the existinghttpxdependency. - 📦
utils.portmodule — port detection and process-tree utilities extracted intoopen_terminal/utils/port.pyfor reusability.