Fixes
- Registry sync after upgrade: Upgrade now updates
installed_plugins.jsonto point back to the current pluginRoot after in-place update. Fixes race condition where pretooluse.mjs self-heal changed registry to a version dir that the upgrade then deleted. - Complete upgrade flow:
- Upgrade: clone → build → clean stale dirs → in-place update → sync registry → update hooks
- Self-heal (on restart): rename dir to correct version → update registry + hooks → delete old dir
Upgrade
```
/context-mode:upgrade
```