()
| 113 | } |
| 114 | |
| 115 | function getBaseDirectories() { |
| 116 | const platform = getPlatform() |
| 117 | const executableName = getBinaryName(platform) |
| 118 | |
| 119 | return { |
| 120 | // Data directories (permanent storage) |
| 121 | versions: join(getXDGDataHome(), 'claude', 'versions'), |
| 122 | |
| 123 | // Cache directories (can be deleted) |
| 124 | staging: join(getXDGCacheHome(), 'claude', 'staging'), |
| 125 | |
| 126 | // State directories |
| 127 | locks: join(getXDGStateHome(), 'claude', 'locks'), |
| 128 | |
| 129 | // User bin |
| 130 | executable: join(getUserBinDir(), executableName), |
| 131 | } |
| 132 | } |
| 133 | |
| 134 | async function isPossibleClaudeBinary(filePath: string): Promise<boolean> { |
| 135 | try { |
no test coverage detected