()
| 240 | * Get the current status of the dev server. |
| 241 | */ |
| 242 | export function getDevServerStatus(): { |
| 243 | status: DevServerStatus; |
| 244 | port: number; |
| 245 | startedAt: number | null; |
| 246 | restartCount: number; |
| 247 | lastError: string | null; |
| 248 | pid: number | undefined; |
| 249 | } { |
| 250 | return { |
| 251 | status: state.status, |
| 252 | port: state.port, |
| 253 | startedAt: state.startedAt, |
| 254 | restartCount: state.restartCount, |
| 255 | lastError: state.lastError, |
| 256 | pid: state.process?.pid, |
| 257 | }; |
| 258 | } |