MCPcopy
hub / github.com/EveryInc/compound-engineering-plugin / resolveCodexHome

Function resolveCodexHome

src/utils/resolve-home.ts:19–22  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

17}
18
19export function resolveCodexHome(value: unknown): string {
20 const defaultPath = process.env.CODEX_HOME?.trim() || path.join(os.homedir(), ".codex")
21 return resolveTargetHome(value, path.resolve(expandHome(defaultPath)))
22}

Callers 5

detect-tools.tsFile · 0.90
runFunction · 0.90
runFunction · 0.90
runFunction · 0.90

Calls 2

resolveTargetHomeFunction · 0.85
expandHomeFunction · 0.85

Tested by

no test coverage detected