mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-20 12:23:22 +00:00
CLI unlinkMergeMode() used exact name matching (sourcePath + entryName) to identify managed symlinks, which failed for nested skills (flat name like _team__frontend__ui doesn't match source path _team/frontend/ui) and orphaned symlinks. Changed to PathHasPrefix-based detection that checks if a symlink points anywhere under the source directory. Server handleRemoveTarget() only handled symlink mode (entire dir is a symlink). Added merge mode branch with unlinkMergeSymlinks() that iterates target entries and removes symlinks pointing under source.