MCPcopy Index your code
hub / github.com/Noumena-Network/code / getLocalInstallDir

Function getLocalInstallDir

src/utils/localInstaller.ts:24–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22// hfi.tsx get a chance to set CLAUDE_CONFIG_DIR in main(), and would also
23// populate the memoize cache with that stale value for all 150+ other callers.
24export function getLocalInstallDir(): string {
25 const canonicalDir = join(getCanonicalNcodeConfigHomeDir(), 'local')
26 const legacyDir = join(getLegacyClaudeConfigHomeDir(), 'local')
27
28 if (existsSync(legacyDir)) {
29 return legacyDir
30 }
31
32 return canonicalDir
33}
34
35export function getLocalInstallDirDisplay(): string {
36 return getLocalInstallDir().replace(homedir(), '~')

Calls 1

existsSyncFunction · 0.90

Tested by

no test coverage detected