Problem
Users need a simple way to update clawatch to the latest version without manually running npm/yarn commands.
Proposed Solution
Add a clawatch update command that:
- Checks for the latest version on npm
- Shows current vs. latest version
- Prompts to update if newer version available
- Handles the update process automatically
User Story
As a clawatch user, I want to run clawatch update so that I can easily keep my CLI up to date without leaving the tool.
Acceptance Criteria
Edge Cases
- What if user doesn't have npm/yarn/pnpm? → Show error with install instructions
- What if registry is unreachable? → Graceful timeout + error message
- What if user installed via npx? → Show message that update isn't applicable
- Global vs. local install? → Detect install type, update accordingly
Open Questions
- Should it support
clawatch update --check (check only, no prompt)?
- Should it auto-check on startup (like Homebrew)?
- Version pinning support?
Priority
P2 (nice to have, improves DX)
Requested by: Anas Dweik
Problem
Users need a simple way to update clawatch to the latest version without manually running npm/yarn commands.
Proposed Solution
Add a
clawatch updatecommand that:User Story
As a clawatch user, I want to run
clawatch updateso that I can easily keep my CLI up to date without leaving the tool.Acceptance Criteria
clawatch updateexistsEdge Cases
Open Questions
clawatch update --check(check only, no prompt)?Priority
P2 (nice to have, improves DX)
Requested by: Anas Dweik