claude-evolve 1.5.12 → 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.
- package/bin/claude-evolve-analyze +50 -14
- package/package.json +1 -1
|
@@ -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
|
-
#
|
|
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
|
-
--
|
|
40
|
-
--
|
|
41
|
-
--
|
|
42
|
-
--
|
|
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.
|
|
@@ -559,14 +595,14 @@ print(f'max_desc=\"{desc_escaped}\"')
|
|
|
559
595
|
done
|
|
560
596
|
fi
|
|
561
597
|
|
|
562
|
-
# Add novel candidates
|
|
563
|
-
if [[ -s "$novel_file" ]] && [[ $(wc -l < "$novel_file") -gt 1 ]]; then
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
fi
|
|
598
|
+
# Add novel candidates - DISABLED to reduce chart clutter
|
|
599
|
+
# if [[ -s "$novel_file" ]] && [[ $(wc -l < "$novel_file") -gt 1 ]]; then
|
|
600
|
+
# if [[ $gen_plots_added -gt 0 ]]; then
|
|
601
|
+
# plot_cmd="$plot_cmd, \\"$'\n'
|
|
602
|
+
# fi
|
|
603
|
+
# plot_cmd="${plot_cmd} \"$novel_file\" using 1:3 with points pointtype 8 pointsize $winner_dot_size linecolor rgb \"#cccccc\" title \"Novel Candidates\""
|
|
604
|
+
# ((gen_plots_added++))
|
|
605
|
+
# fi
|
|
570
606
|
|
|
571
607
|
# Add winner point
|
|
572
608
|
if [[ -n $max_id && -s "$winner_file" ]]; then
|