MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / resolveCodexHome

Function resolveCodexHome

packages/codex-native-api/src/auth_state.ts:50–56  ·  view source on GitHub ↗
(env: NodeJS.ProcessEnv = process.env)

Source from the content-addressed store, hash-verified

48}
49
50export function resolveCodexHome(env: NodeJS.ProcessEnv = process.env): string {
51 const configured = normalizeString(env.CODEX_HOME);
52 if (configured) {
53 return path.resolve(configured);
54 }
55 return path.join(os.homedir(), '.codex');
56}
57
58export function resolveCodexAuthPath(env: NodeJS.ProcessEnv = process.env): string {
59 return path.join(resolveCodexHome(env), 'auth.json');

Callers 1

resolveCodexAuthPathFunction · 0.70

Calls 2

resolveMethod · 0.80
normalizeStringFunction · 0.70

Tested by

no test coverage detected