claude-evolve 1.5.6 → 1.5.9
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.
|
@@ -268,9 +268,21 @@ class AutoStatus:
|
|
|
268
268
|
self.display.move_cursor(row, 1)
|
|
269
269
|
print("-" * min(self.display.cols, len(header_fmt)))
|
|
270
270
|
row += 1
|
|
271
|
+
# Sort generations numerically by extracting the number after "gen"
|
|
272
|
+
# Put baseline first, then sort numerically
|
|
273
|
+
def gen_sort_key(gen_str):
|
|
274
|
+
"""Extract numeric value from generation string for sorting."""
|
|
275
|
+
# Baseline goes first (return -1 for sorting)
|
|
276
|
+
if gen_str == "baseline" or gen_str == "gen00":
|
|
277
|
+
return -1
|
|
278
|
+
if gen_str.startswith("gen"):
|
|
279
|
+
try:
|
|
280
|
+
return int(gen_str[3:])
|
|
281
|
+
except ValueError:
|
|
282
|
+
return 999999 # Put non-numeric at end
|
|
283
|
+
return 999999
|
|
271
284
|
|
|
272
|
-
|
|
273
|
-
sorted_gens = sorted(generations.keys(), key=lambda g: int(g[3:]) if g.startswith("gen") and g[3:].isdigit() else 0)
|
|
285
|
+
sorted_gens = sorted(generations.keys(), key=gen_sort_key)
|
|
274
286
|
|
|
275
287
|
# Calculate how many generations we can show
|
|
276
288
|
available_rows = self.display.rows - row - 1 # Leave room at bottom
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|