(shimPath: string)
| 29 | } |
| 30 | |
| 31 | function resolveShimScript(shimPath: string): string | null { |
| 32 | const shimDirectory = windowsPath.dirname(shimPath); |
| 33 | const script = windowsPath.join(shimDirectory, 'node_modules', '@openai', 'codex', 'bin', 'codex.js'); |
| 34 | |
| 35 | if (existsSync(script)) { |
| 36 | return script; |
| 37 | } |
| 38 | |
| 39 | return null; |
| 40 | } |
| 41 | |
| 42 | function resolveWindowsCandidate(candidate: string): CodexCommand | null { |
| 43 | if (!existsSync(candidate)) { |
no outgoing calls
no test coverage detected