provide-terminal
2026-03-09
Cloudflare WebSocket Protocol implemented, proxy terminal page added, and test suite reorganized into feature-based subdirectories
115 files · 5,581+ · 360-
CFWebSocket Protocol
11 files changed
ws_helpers.pyCFWebSocket protocol helpers extractedsession_runtime.pySession runtime updated with CFWebSocket protocolhttp_routes.pyProxy terminal page endpoint addedapp.pyServer app updated with proxy terminal pageconfig.pyConfig updated for CFWebSocket and proxy terminalgateway.pyGateway updated for CFWebSocket protocolbridge.pyBridge updated for CFWebSocketconnections.pyHub connections updatedcore.pyHub core updatedbrowser_handlers.pyBrowser handlers updated for CFWebSocketwebsockets.pyWS routes updated for CFWebSocket protocol
- Cloudflare WebSocket Protocol implementation added, enabling WebSocket connections through CF Workers without the standard HTTP upgrade path.
interface
behavioral
3 files
ws_helpers.pysession_runtime.pyhttp_routes.py
- Proxy terminal page added for browser-based terminal access through the CF Worker.
instantiate
behavioral
3 files
app.pyconfig.pyregistry.py
- UX improvements to connection handling and reconnection flows.
decouple
behavioral
2 files
bridge.pywebsockets.py
Test Organization
28 files changed
__init__.pyANSI tests package inittest_ansi.pyANSI tests moved to ansi/ subdirectorytest_ansi_upgrade.pyANSI upgrade tests moved__init__.pyCLI tests package inittest_cli.pyCLI tests moved to cli/__init__.pyE2E tests package inittest_live_hub_ws.pyLive hub WS tests moved to e2e/test_ssh_gateway.pySSH gateway tests moved to e2e/test_telnet_gateway.pyTelnet gateway tests moved to e2e/__init__.pyHijack tests package inittest_acquire_atomic.pyAcquire atomic tests moved to hijack/test_base.pyHijack base tests movedtest_bridge.pyBridge tests movedtest_hub.pyHub tests moved__init__.pyPlaywright tests package initconftest.pyPlaywright conftest movedtest_example.pyPlaywright example tests movedtest_hijack.pyPlaywright hijack tests movedtest_server.pyPlaywright server tests movedtest_terminal_proxy.pyPlaywright terminal proxy tests moved__init__.pyServer tests package inittest_api.pyServer API tests moved to server/test_app.pyServer app tests movedtest_auth.pyServer auth tests movedtest_config.pyServer config tests moved__init__.pyTransport tests package inittest_telnet.pyTelnet tests moved to transports/test_websocket.pyWebSocket tests moved
- Test suite reorganized from flat layout into feature-based subdirectories matching the source module hierarchy: ansi/, cli/, e2e/, hijack/, playwright/, proxy/, server/, terminal/, transports/.
qualify
architectural
5 files
__init__.py__init__.py__init__.py__init__.py__init__.py
Cyclomatic Complexity Reduction
5 files changed
core.pyHelpers extracted to reduce cyclomatic complexityownership.pyOwnership helpers extractedpolling.pyPolling helpers extractedsession_logger.pySession logger helpers extractedtelnet.pyTelnet helpers extracted
Coverage Additions
5 files changed
test_terminal_proxy.pyTests for the new proxy terminal pagetest_ws_regression_disconnect.pyTests for WS disconnect resume scenariotest_branch_coverage.pyCF branch coverage teststest_http_routes_coverage2.pyCF HTTP routes additional coveragetest_session_runtime_coverage.pyCF session runtime coverage