Files
Nicholas Ferguson 2a94be1794 fix(assets): add validation and error handling to symlink operations
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.
2026-02-24 20:58:43 -05:00
..