(commandLine: string)
| 123 | * arguments. |
| 124 | */ |
| 125 | export function isCodeGraphServerCommandLine(commandLine: string): boolean { |
| 126 | const args = commandLine.replace(/["']/g, ' ').split(/\s+/); |
| 127 | return /codegraph/i.test(commandLine) && args.includes('serve') && args.some((a) => a === '--mcp' || a.startsWith('--mcp=')); |
| 128 | } |
| 129 | |
| 130 | /** Whether an executable could be a JavaScript runtime that runs CodeGraph. */ |
| 131 | function mayRunCodeGraph(name: string): boolean { |
no outgoing calls
no test coverage detected