MCPcopy Create free account
hub / github.com/tiann/hapi / resolveShimScript

Function resolveShimScript

cli/src/codex/utils/codexExecutable.ts:31–40  ·  view source on GitHub ↗
(shimPath: string)

Source from the content-addressed store, hash-verified

29}
30
31function 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
42function resolveWindowsCandidate(candidate: string): CodexCommand | null {
43 if (!existsSync(candidate)) {

Callers 1

resolveWindowsCandidateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected