()
| 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. |
| 24 | export 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 | |
| 35 | export function getLocalInstallDirDisplay(): string { |
| 36 | return getLocalInstallDir().replace(homedir(), '~') |
no test coverage detected