You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat(upgrade): opt-in --skills, channel detection, verified swap (#32)
* feat(upgrade): opt-in --skills, channel detection, verified swap
`mail-use upgrade` now only upgrades the CLI; skill copies are listed with
the command that refreshes them and touched only with `--skills` (a skill-only
refresh when the CLI is current).
- install channel: release binary vs Homebrew / npm / source checkout; the
latter are refused (exit 1) with the owning manager's command, before any
download. `--json` and `--check` report it as `install_channel`.
- sha256 sidecar is mandatory (missing, malformed or mismatched = exit 2);
the extracted binary must run and report the requested version (PKG_* env
stripped) before it is staged next to the target and renamed over it.
Any failure leaves the installed binary untouched.
- install.sh: checksum mandatory, stage + atomic rename.
- `--check --tag vX.Y.Z` reports against the pinned release.
- skill git pulls never prompt for credentials.
- README / README.zh / SKILL.md; tests for version comparison, checksum
mismatch and missing checksum, binary verification, channel detection,
skills opt-in, and install.sh checksum handling.
* fix(upgrade): require the exact version from the downloaded binary