The changes streamline URL shorthand handling, refactor the add helper, and introduce a cleaning routine to remove stale plugins, improving maintainability and user experience.
New Features:
- Added `M.clean` to purge unregistered plugins.
- Introduced fallback shorthand resolution via `setmetatable`.
- Enhanced `add` to process table specs with `src` field.
Enhancements:
- Simplified URL resolution logic.
- Improved notifications and error handling.
- Wrapped additions in `pcall` for robustness.
Bug Fixes:
- Fixed potential missing default URL prefix handling.
- Ensured proper cleanup of stale package entries.