()
| 387 | }, |
| 388 | |
| 389 | detachProcessHandlers(): void { |
| 390 | if (!handlersAttached) { |
| 391 | return; |
| 392 | } |
| 393 | handlersAttached = false; |
| 394 | |
| 395 | processRef.removeListener('SIGTERM', handleSigterm); |
| 396 | processRef.removeListener('SIGINT', handleSigint); |
| 397 | processRef.stdin.removeListener('end', handleStdinEnd); |
| 398 | processRef.stdin.removeListener('close', handleStdinClose); |
| 399 | processRef.stdout?.removeListener('error', handleStdoutError); |
| 400 | processRef.stderr?.removeListener('error', handleStderrError); |
| 401 | processRef.removeListener('uncaughtException', handleUncaughtException); |
| 402 | processRef.removeListener('unhandledRejection', handleUnhandledRejection); |
| 403 | processRef.removeListener('exit', handleExit); |
| 404 | }, |
| 405 | |
| 406 | markPhase(phase: McpStartupPhase): void { |
| 407 | state.phase = phase; |
nothing calls this directly
no test coverage detected