refactor: streamline claude-mem integration and remove unused code

- Updated CODEMAP to reflect changes in fallback methods for package root discovery.
- Removed the `detectClaudePath` function and replaced its usage with direct references to `PACKAGE_NAME`.
- Eliminated the `claudePath` property from Settings interface and user settings configuration.
- Cleaned up path discovery logic by removing the npm list command method.
- Removed the `findExecutable` method from the Platform utility as it was no longer needed.
This commit is contained in:
Alex Newman
2025-10-16 14:24:32 -04:00
parent 6e9be84a01
commit eddb321489
6 changed files with 90 additions and 131 deletions
-13
View File
@@ -9,19 +9,6 @@ const isWindows = platform() === 'win32';
* Handles differences between Windows and Unix-like systems
*/
export const Platform = {
/**
* Finds the path to an executable command
* @param name - Name of the executable to find
* @returns Full path to the executable
*/
findExecutable: (name: string): string => {
const cmd = isWindows ? `where ${name}` : `which ${name}`;
return execSync(cmd, {
encoding: 'utf8',
stdio: ['ignore', 'pipe', 'ignore']
}).trim();
},
/**
* Installs uv package manager using platform-specific method
*/