Fixes Amp plugin installation, which could leave the plugin unable to load, by shipping it as a directory plugin and migrating existing installs automatically.
Fixed
- Fixed the Amp plugin failing to load: it is now installed as a directory (
cc-safety-net/index.ts) in your Amp personal plugins repository instead of the root filecc-safety-net.ts, which Amp base64-encodes into a single process environment entry that exceeds Linux's per-entry limit. (#79) - Fixed migration from earlier releases:
install --ampnow removes the legacycc-safety-net.tsfile in the same commit, so no manual cleanup is needed. (#79) - Fixed
uninstall --ampscope: it now removes only the managed entry file and leaves any other files you keep in the plugin directory untouched. (#79) - Fixed
install --ampreporting the plugin as already up to date when the plugin path is ignored by your personal plugins repository; staging the file now fails with an error instead. (#79) - Fixed cleanup of a masking local copy: install and uninstall now also remove a
~/.config/amp/plugins/cc-safety-net/directory when it holds nothing but the managed entry, and refuse rather than delete anything else. (#79) - Fixed retry instructions in Amp error messages, which told you to rerun
install --ampeven when the failure happened duringuninstall --amp. (#79)