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

Function resolveTargetHome

src/utils/resolve-home.ts:12–17  ·  view source on GitHub ↗
(value: unknown, defaultPath: string)

Source from the content-addressed store, hash-verified

10}
11
12export function resolveTargetHome(value: unknown, defaultPath: string): string {
13 if (!value) return defaultPath
14 const raw = String(value).trim()
15 if (!raw) return defaultPath
16 return path.resolve(expandHome(raw))
17}
18
19export function resolveCodexHome(value: unknown): string {
20 const defaultPath = process.env.CODEX_HOME?.trim() || path.join(os.homedir(), ".codex")

Callers 4

runFunction · 0.90
runFunction · 0.90
runFunction · 0.90
resolveCodexHomeFunction · 0.85

Calls 1

expandHomeFunction · 0.85

Tested by

no test coverage detected