(command: string)
| 178 | } |
| 179 | |
| 180 | function isLikelyMcpProcessCommand(command: string): boolean { |
| 181 | const normalized = command.toLowerCase(); |
| 182 | if (!/(^|\s)mcp(\s|$)/.test(normalized)) { |
| 183 | return false; |
| 184 | } |
| 185 | if (/(^|\s)daemon(\s|$)/.test(normalized)) { |
| 186 | return false; |
| 187 | } |
| 188 | return ( |
| 189 | normalized.includes('xcodebuildmcp') || |
| 190 | normalized.includes('build/cli.js') || |
| 191 | normalized.includes('/cli.js') |
| 192 | ); |
| 193 | } |
| 194 | |
| 195 | function isBrokenPipeLikeError(error: unknown): boolean { |
| 196 | if (!(error instanceof Error)) { |
no outgoing calls
no test coverage detected