mirror of
https://github.com/NickCrew/Claude-Cortex.git
synced 2026-09-14 20:17:11 +08:00
2a94be1794
Priority 1 & 3 code review improvements: - Add source path existence validation before all symlink operations - Add (OSError, PermissionError) try/except blocks to symlink creation/removal - Separate error handling for unlink and symlink_to operations - Fix uninitialized source_path in _agent_activate_recursive (init to None) - Add specific error messages for each failure mode Files changed: - agents.py: Updated _agent_activate_recursive and agent_deactivate with proper error handling and source_path initialization fix - skills.py: Enhanced skill_activate/skill_deactivate with source validation and specific exception handling - rules.py: Updated rules_activate/rules_deactivate to catch PermissionError and provide clear error messages - asset_installer.py: Apply same patterns to all install functions This ensures robust symlink operations with clear feedback on failure modes.