yera.ui.fastapi_routes.sessions
Create app sessions and report their live execution state.
Symbols
register_session_routes
register_session_routes(
app: FastAPI,
launch_session: LaunchSession,
is_running: IsRunning,
) → NoneRegister session creation and status routes.
POST /apps/{app_id}/sessions delegates creation and immediate launch to
the server, then returns an empty HTMX response whose HX-Redirect header
opens the new session shell. GET /sessions/{session_id}/status reports
whether that session currently has a running router task.
Parameters
app
type: FastAPI
FastAPI application receiving the routes.
launch_session
type: LaunchSession
Asynchronous callback that creates and launches a session for an app ID.
is_running
type: IsRunning
Callback that reports whether a session is executing in the current server process.