Skip to content

Conversation

@fnebenfuehr
Copy link
Owner

  • Enhanced --version flag to check npm registry and show update availability
  • Added 'worktree update' command to update CLI via npm
  • Export fetchLatestVersion and isNewerVersion from update-checker for reuse
  • Handle permission errors gracefully with helpful sudo instructions
  • Cache update check results for 24 hours
  • Added comprehensive tests with mocked npm registry responses

claude and others added 5 commits November 21, 2025 23:22
- Enhanced --version flag to check npm registry and show update availability
- Added 'worktree update' command to update CLI via npm
- Export fetchLatestVersion and isNewerVersion from update-checker for reuse
- Handle permission errors gracefully with helpful sudo instructions
- Cache update check results for 24 hours
- Added comprehensive tests with mocked npm registry responses
Export npm functions for mocking in tests, add proper spyOn mocks
to fix CI test failures, and remove redundant inline comments.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Convert string concatenation to template literal.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@fnebenfuehr fnebenfuehr marked this pull request as ready for review November 22, 2025 16:08
@fnebenfuehr fnebenfuehr merged commit 830b9f0 into main Nov 22, 2025
3 checks passed
@fnebenfuehr fnebenfuehr deleted the claude/add-cli-update-functionality-01Ew5yHvwCDXbTHKDeBByEE1 branch November 22, 2025 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants