(error: unknown)
| 193 | } |
| 194 | |
| 195 | function isBrokenPipeLikeError(error: unknown): boolean { |
| 196 | if (!(error instanceof Error)) { |
| 197 | return false; |
| 198 | } |
| 199 | |
| 200 | const code = String((error as NodeJS.ErrnoException).code ?? ''); |
| 201 | return code === 'EPIPE' || code === 'ERR_STREAM_DESTROYED'; |
| 202 | } |
| 203 | |
| 204 | async function sampleMcpPeerProcesses( |
| 205 | commandExecutor: CommandExecutor, |
no outgoing calls
no test coverage detected