claude-evolve 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,6 +4,7 @@ set -e
4
4
 
5
5
  # Colors for output
6
6
  GREEN='\033[0;32m'
7
+ YELLOW='\033[0;33m'
7
8
  RED='\033[0;31m'
8
9
  NC='\033[0m' # No Color
9
10
 
@@ -20,6 +21,22 @@ get_version() {
20
21
  fi
21
22
  }
22
23
 
24
+ # Function to check for updates (non-blocking)
25
+ check_for_updates() {
26
+ # Only check if we can reach npm registry quickly
27
+ if timeout 2 npm view claude-evolve version >/dev/null 2>&1; then
28
+ local current_version
29
+ current_version=$(npm list -g claude-evolve --depth=0 2>/dev/null | grep claude-evolve | sed 's/.*@//')
30
+ local latest_version
31
+ latest_version=$(timeout 2 npm view claude-evolve version 2>/dev/null)
32
+
33
+ if [[ -n $current_version ]] && [[ -n $latest_version ]] && [[ $current_version != "$latest_version" ]]; then
34
+ echo -e "${YELLOW}📦 Update available: claude-evolve $current_version → $latest_version${NC}"
35
+ echo -e "${YELLOW} Run: npm update -g claude-evolve${NC}"
36
+ echo
37
+ fi
38
+ fi
39
+ }
23
40
 
24
41
  show_help() {
25
42
  cat <<EOF
@@ -72,6 +89,9 @@ show_menu() {
72
89
  echo
73
90
  }
74
91
 
92
+ # Check for updates (quick, non-blocking)
93
+ check_for_updates
94
+
75
95
  # Main logic
76
96
  if [[ $# -eq 0 ]]; then
77
97
  show_menu
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-evolve",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "bin": {
5
5
  "claude-evolve": "./bin/claude-evolve"
6
6
  },