claude-evolve 1.5.13 → 1.5.14

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.
@@ -7,9 +7,44 @@ 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
10
+ # Parse working directory before other arguments
11
+ WORKING_DIR=""
12
+ args=()
13
+ while [[ $# -gt 0 ]]; do
14
+ case $1 in
15
+ --working-dir)
16
+ if [[ -z ${2:-} ]]; then
17
+ echo "[ERROR] --working-dir requires a directory path" >&2
18
+ exit 1
19
+ fi
20
+ WORKING_DIR="$2"
21
+ shift 2
22
+ ;;
23
+ --working-dir=*)
24
+ WORKING_DIR="${1#*=}"
25
+ shift
26
+ ;;
27
+ *)
28
+ args+=("$1")
29
+ shift
30
+ ;;
31
+ esac
32
+ done
33
+ set -- "${args[@]}"
34
+
35
+ # Auto-detect config.yaml in current directory if --working-dir not specified
36
+ if [[ -z $WORKING_DIR ]] && [[ -f "config.yaml" ]]; then
37
+ WORKING_DIR="."
38
+ fi
39
+
40
+ # Use CLAUDE_EVOLVE_CONFIG if set, otherwise use working dir or default
11
41
  if [[ -n ${CLAUDE_EVOLVE_CONFIG:-} ]]; then
12
42
  load_config "$CLAUDE_EVOLVE_CONFIG"
43
+ elif [[ -n $WORKING_DIR ]]; then
44
+ # Remove trailing slash if present
45
+ WORKING_DIR="${WORKING_DIR%/}"
46
+ CONFIG_FILE="$WORKING_DIR/config.yaml"
47
+ load_config "$CONFIG_FILE"
13
48
  else
14
49
  # Check if config.yaml exists in current directory
15
50
  if [[ -f "config.yaml" ]]; then
@@ -33,13 +68,14 @@ while [[ $# -gt 0 ]]; do
33
68
  claude-evolve analyze - Analyze evolution results
34
69
 
35
70
  USAGE:
36
- claude-evolve analyze [--open] [--csv <path>] [--output <path>]
71
+ claude-evolve analyze [--working-dir <path>] [--open] [--csv <path>] [--output <path>]
37
72
 
38
73
  OPTIONS:
39
- --open Open the generated chart automatically
40
- --csv <path> Path to evolution.csv (default: ./evolution/evolution.csv)
41
- --output <path> Output path for chart PNG (default: ./evolution/performance.png)
42
- --help Show this help message
74
+ --working-dir <path> Use alternate working directory (default: current or evolution/)
75
+ --open Open the generated chart automatically
76
+ --csv <path> Path to evolution.csv (default: <working-dir>/evolution.csv)
77
+ --output <path> Output path for chart PNG (default: <working-dir>/performance.png)
78
+ --help Show this help message
43
79
 
44
80
  DESCRIPTION:
45
81
  Analyzes the evolution.csv file and generates a performance chart.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-evolve",
3
- "version": "1.5.13",
3
+ "version": "1.5.14",
4
4
  "bin": {
5
5
  "claude-evolve": "./bin/claude-evolve",
6
6
  "claude-evolve-main": "./bin/claude-evolve-main",