claude-evolve 1.5.9 → 1.5.11

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.
@@ -11,7 +11,14 @@ source "$SCRIPT_DIR/../lib/config.sh"
11
11
  if [[ -n ${CLAUDE_EVOLVE_CONFIG:-} ]]; then
12
12
  load_config "$CLAUDE_EVOLVE_CONFIG"
13
13
  else
14
- load_config
14
+ # Check if config.yaml exists in current directory
15
+ if [[ -f "config.yaml" ]]; then
16
+ # Don't export to avoid collision with parallel runs
17
+ CONFIG_FILE="$(pwd)/config.yaml"
18
+ load_config "$CONFIG_FILE"
19
+ else
20
+ load_config
21
+ fi
15
22
  fi
16
23
 
17
24
  # Parse arguments
@@ -35,7 +35,14 @@ done
35
35
  if [[ -n ${CLAUDE_EVOLVE_CONFIG:-} ]]; then
36
36
  load_config "$CLAUDE_EVOLVE_CONFIG"
37
37
  else
38
- load_config
38
+ # Check if config.yaml exists in current directory
39
+ if [[ -f "config.yaml" ]]; then
40
+ # Don't export to avoid collision with parallel runs
41
+ CONFIG_FILE="$(pwd)/config.yaml"
42
+ load_config "$CONFIG_FILE"
43
+ else
44
+ load_config
45
+ fi
39
46
  fi
40
47
 
41
48
 
@@ -11,7 +11,14 @@ source "$SCRIPT_DIR/../lib/config.sh"
11
11
  if [[ -n ${CLAUDE_EVOLVE_CONFIG:-} ]]; then
12
12
  load_config "$CLAUDE_EVOLVE_CONFIG"
13
13
  else
14
- load_config
14
+ # Check if config.yaml exists in current directory
15
+ if [[ -f "config.yaml" ]]; then
16
+ # Don't export to avoid collision with parallel runs
17
+ CONFIG_FILE="$(pwd)/config.yaml"
18
+ load_config "$CONFIG_FILE"
19
+ else
20
+ load_config
21
+ fi
15
22
  fi
16
23
 
17
24
  # Function to show help
@@ -7,6 +7,20 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
7
7
  # shellcheck source=../lib/config.sh
8
8
  source "$SCRIPT_DIR/../lib/config.sh"
9
9
 
10
+ # Use CLAUDE_EVOLVE_CONFIG if set, otherwise default
11
+ if [[ -n ${CLAUDE_EVOLVE_CONFIG:-} ]]; then
12
+ load_config "$CLAUDE_EVOLVE_CONFIG"
13
+ else
14
+ # Check if config.yaml exists in current directory
15
+ if [[ -f "config.yaml" ]]; then
16
+ # Don't export to avoid collision with parallel runs
17
+ CONFIG_FILE="$(pwd)/config.yaml"
18
+ load_config "$CONFIG_FILE"
19
+ else
20
+ load_config
21
+ fi
22
+ fi
23
+
10
24
  show_help() {
11
25
  cat <<EOF
12
26
  claude-evolve config - Manage configuration settings
@@ -11,7 +11,14 @@ source "$SCRIPT_DIR/../lib/config.sh"
11
11
  if [[ -n ${CLAUDE_EVOLVE_CONFIG:-} ]]; then
12
12
  load_config "$CLAUDE_EVOLVE_CONFIG"
13
13
  else
14
- load_config
14
+ # Check if config.yaml exists in current directory
15
+ if [[ -f "config.yaml" ]]; then
16
+ # Don't export to avoid collision with parallel runs
17
+ CONFIG_FILE="$(pwd)/config.yaml"
18
+ load_config "$CONFIG_FILE"
19
+ else
20
+ load_config
21
+ fi
15
22
  fi
16
23
 
17
24
  # Function to show help
@@ -15,7 +15,14 @@ source "$SCRIPT_DIR/../lib/ai-cli.sh"
15
15
  if [[ -n ${CLAUDE_EVOLVE_CONFIG:-} ]]; then
16
16
  load_config "$CLAUDE_EVOLVE_CONFIG"
17
17
  else
18
- load_config
18
+ # Check if config.yaml exists in current directory
19
+ if [[ -f "config.yaml" ]]; then
20
+ # Don't export to avoid collision with parallel runs
21
+ CONFIG_FILE="$(pwd)/config.yaml"
22
+ load_config "$CONFIG_FILE"
23
+ else
24
+ load_config
25
+ fi
19
26
  fi
20
27
 
21
28
  # Setup logging to file
@@ -134,6 +134,11 @@ while [[ $# -gt 0 ]] && [[ "$1" =~ ^-- ]]; do
134
134
  esac
135
135
  done
136
136
 
137
+ # Auto-detect config.yaml in current directory if --working-dir not specified
138
+ if [[ -z $WORKING_DIR ]] && [[ -f "config.yaml" ]]; then
139
+ WORKING_DIR="."
140
+ fi
141
+
137
142
  # Export config file path for subcommands
138
143
  if [[ -n $WORKING_DIR ]]; then
139
144
  # Remove trailing slash if present
@@ -11,7 +11,14 @@ source "$SCRIPT_DIR/../lib/config.sh"
11
11
  if [[ -n ${CLAUDE_EVOLVE_CONFIG:-} ]]; then
12
12
  load_config "$CLAUDE_EVOLVE_CONFIG"
13
13
  else
14
- load_config
14
+ # Check if config.yaml exists in current directory
15
+ if [[ -f "config.yaml" ]]; then
16
+ # Don't export to avoid collision with parallel runs
17
+ CONFIG_FILE="$(pwd)/config.yaml"
18
+ load_config "$CONFIG_FILE"
19
+ else
20
+ load_config
21
+ fi
15
22
  fi
16
23
 
17
24
  # Validate configuration
package/lib/ai-cli.sh CHANGED
@@ -19,7 +19,7 @@ call_ai_model_configured() {
19
19
  case "$model_name" in
20
20
  opus|sonnet)
21
21
  local ai_output
22
- ai_output=$(timeout 180 claude --dangerously-skip-permissions --model "$model_name" -p "$prompt" 2>&1)
22
+ ai_output=$(timeout 300 claude --dangerously-skip-permissions --model "$model_name" -p "$prompt" 2>&1)
23
23
  local ai_exit_code=$?
24
24
  ;;
25
25
  gpt5high)
@@ -50,7 +50,7 @@ call_ai_model_configured() {
50
50
  ;;
51
51
  cursor-sonnet)
52
52
  local ai_output
53
- ai_output=$(timeout 180 cursor-agent sonnet -p "$prompt" 2>&1)
53
+ ai_output=$(timeout 300 cursor-agent sonnet -p "$prompt" 2>&1)
54
54
  local ai_exit_code=$?
55
55
  ;;
56
56
  cursor-opus)
package/lib/config.sh CHANGED
@@ -238,7 +238,8 @@ load_config() {
238
238
  if [[ "$config_file" != "evolution/config.yaml" ]]; then
239
239
  # Extract directory from config file path
240
240
  local config_dir=$(dirname "$config_file")
241
- if [[ "$config_dir" != "." && "$config_dir" != "" ]]; then
241
+ # Use the config directory as evolution directory (including "." for current dir)
242
+ if [[ "$config_dir" != "" ]]; then
242
243
  EVOLUTION_DIR="$config_dir"
243
244
  echo "[DEBUG] Using evolution directory from config path: $EVOLUTION_DIR" >&2
244
245
  fi
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-evolve",
3
- "version": "1.5.9",
3
+ "version": "1.5.11",
4
4
  "bin": {
5
5
  "claude-evolve": "./bin/claude-evolve",
6
6
  "claude-evolve-main": "./bin/claude-evolve-main",