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:
+1
-6
@@ -749,7 +749,7 @@ export type { ParsedObservation, ParsedSummary } from './parser.js';
|
||||
- `getProjectMcpConfigPath()`: `./.mcp.json`
|
||||
|
||||
**Package Discovery**:
|
||||
- `getPackageRoot()`: Find claude-mem package root (3 fallback methods)
|
||||
- `getPackageRoot()`: Find claude-mem package root (2 fallback methods)
|
||||
- `findPackageCommandsDirectory()`: Find commands directory in package
|
||||
|
||||
**Utility Methods**:
|
||||
@@ -1108,7 +1108,6 @@ export interface Settings {
|
||||
backend?: string; // 'chroma'
|
||||
embedded?: boolean;
|
||||
saveMemoriesOnClear?: boolean;
|
||||
claudePath?: string;
|
||||
rollingCaptureEnabled?: boolean;
|
||||
rollingSummaryEnabled?: boolean;
|
||||
rollingSessionStartEnabled?: boolean;
|
||||
@@ -1181,10 +1180,6 @@ export async function getStorageProvider(): Promise<IStorageProvider>
|
||||
|
||||
**Key Functions**:
|
||||
|
||||
- **`Platform.findExecutable(name)`**: Find path to executable
|
||||
- Windows: `where {name}`
|
||||
- Unix: `which {name}`
|
||||
|
||||
- **`Platform.installUv()`**: Install uv package manager
|
||||
- Windows: PowerShell script
|
||||
- Unix: curl + sh script
|
||||
|
||||
Reference in New Issue
Block a user