Description
Add a supercode upgrade command that checks the npm registry for the latest version and upgrades itself.
Expected Deliverables
supercode upgrade command that:
- Checks the current version from
package.json
- Fetches the latest version from
https://registry.npmjs.org/supercode-cli/latest
- Compares versions and prints a message if up-to-date
- If outdated, runs the install script or prompts
npm install -g supercode-cli
- Version check on startup (configurable, opt-in) with a notification banner
supercode --version prints current version
Why
Essential for CLI UX — users should never have to manually check for updates.
Description
Add a
supercode upgradecommand that checks the npm registry for the latest version and upgrades itself.Expected Deliverables
supercode upgradecommand that:package.jsonhttps://registry.npmjs.org/supercode-cli/latestnpm install -g supercode-clisupercode --versionprints current versionWhy
Essential for CLI UX — users should never have to manually check for updates.