mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-04-08 10:23:30 +08:00
fix: Windows path support, error handling, and dedup in validators
- session-manager.js: fix getSessionStats path detection to handle Windows paths (C:\...) in addition to Unix paths (/) - package-manager.js: add try-catch to setPreferredPackageManager for consistent error handling with setProjectPackageManager - validate-hooks.js: extract duplicated hook entry validation into reusable validateHookEntry() helper - Update .d.ts JSDoc for both fixes
This commit is contained in:
2
scripts/lib/package-manager.d.ts
vendored
2
scripts/lib/package-manager.d.ts
vendored
@@ -68,7 +68,7 @@ export function getPackageManager(options?: GetPackageManagerOptions): PackageMa
|
||||
/**
|
||||
* Set the user's globally preferred package manager.
|
||||
* Saves to ~/.claude/package-manager.json.
|
||||
* @throws If pmName is not a known package manager
|
||||
* @throws If pmName is not a known package manager or if save fails
|
||||
*/
|
||||
export function setPreferredPackageManager(pmName: PackageManagerName): { packageManager: string; setAt: string };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user