Get the current status of the dev server for a project. Returns information about whether the dev server is running, its process ID, detected URL, and the command used to start it.
(project_name: str)
| 247 | |
| 248 | @router.get("/status", response_model=DevServerStatus) |
| 249 | async def get_devserver_status(project_name: str) -> DevServerStatus: |
| 250 | """ |
| 251 | Get the current status of the dev server for a project. |
| 252 | |
| 253 | Returns information about whether the dev server is running, |
| 254 | its process ID, detected URL, and the command used to start it. |
| 255 | """ |
| 256 | manager = get_project_devserver_manager(project_name) |
| 257 | |
| 258 | # Run healthcheck to detect crashed processes |
| 259 | await manager.healthcheck() |
| 260 | |
| 261 | return DevServerStatus( |
| 262 | status=manager.status, |
| 263 | pid=manager.pid, |
| 264 | url=manager.detected_url, |
| 265 | command=manager._command, |
| 266 | started_at=manager.started_at.isoformat() if manager.started_at else None, |
| 267 | ) |
| 268 | |
| 269 | |
| 270 | @router.post("/start", response_model=DevServerActionResponse) |
nothing calls this directly
no test coverage detected