Reinstalling a plugin over a cached copy can no longer leave you with a half-deleted directory.
What's wrong with this entry?
Installing over a cached plugin now renames the old copy aside first and deletes it only after the new content is in place, restoring the old directory if the move fails. A broken install can no longer leave you with nothing.
- Temporary directories are siblings prefixed
.claude-plugin-temp-. - If the rename cannot be done at all, the code deletes in place as before and logs that choice at debug level.
removing it in place instead
Strings lifted out of the shipped bundle, so the claim above can be checked against them.