golem-cc 0.1.24 → 0.1.25

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.
Files changed (2) hide show
  1. package/bin/golem +33 -2
  2. package/package.json +1 -1
package/bin/golem CHANGED
@@ -145,6 +145,15 @@ is_plan_complete() {
145
145
  return $EXIT_INCOMPLETE
146
146
  }
147
147
 
148
+ # Get the current (first incomplete) task from the plan
149
+ get_current_task() {
150
+ local plan=".golem/IMPLEMENTATION_PLAN.md"
151
+ if [[ -f "$plan" ]]; then
152
+ # Find first unchecked task and extract its title
153
+ grep -E '^\s*-\s*\[ \]' "$plan" | head -1 | sed 's/.*\[ \] //' | sed 's/^[0-9]*\.\s*//' | cut -c1-60
154
+ fi
155
+ }
156
+
148
157
  # Get task counts for display
149
158
  get_task_counts() {
150
159
  local plan=".golem/IMPLEMENTATION_PLAN.md"
@@ -539,8 +548,10 @@ run_build_loop() {
539
548
  break
540
549
  fi
541
550
 
542
- # Get task counts for display
551
+ # Get task counts and current task for display
543
552
  read -r remaining checked <<< "$(get_task_counts)"
553
+ local current_task
554
+ current_task=$(get_current_task)
544
555
 
545
556
  echo ""
546
557
  hr "─" "$BLUE"
@@ -548,6 +559,9 @@ run_build_loop() {
548
559
  local progress_pct=0
549
560
  [[ $total -gt 0 ]] && progress_pct=$((checked * 100 / total))
550
561
  echo -e "${BLUE} ▸ Iteration ${BOLD}$iteration${NC}${BLUE} Tasks: ${GREEN}$checked${BLUE}/${total} ${DIM}($progress_pct%)${NC}"
562
+ if [[ -n "$current_task" ]]; then
563
+ echo -e "${CYAN} ▸ Task:${NC} ${current_task}"
564
+ fi
551
565
  hr "─" "$BLUE"
552
566
 
553
567
  local iter_start=$(date +%s)
@@ -562,8 +576,25 @@ run_build_loop() {
562
576
 
563
577
  local iter_end=$(date +%s)
564
578
  local iter_duration=$((iter_end - iter_start))
579
+ local iter_mins=$((iter_duration / 60))
580
+ local iter_secs=$((iter_duration % 60))
565
581
  log_event "ITERATION_END" "iteration=$iteration exit_code=$claude_exit duration=${iter_duration}s"
566
582
 
583
+ # Show iteration summary
584
+ echo ""
585
+ if [[ $claude_exit -eq 0 ]]; then
586
+ echo -e " ${GREEN}✓${NC} Iteration $iteration completed ${DIM}(${iter_mins}m ${iter_secs}s)${NC}"
587
+ else
588
+ echo -e " ${YELLOW}!${NC} Iteration $iteration exited with code $claude_exit ${DIM}(${iter_mins}m ${iter_secs}s)${NC}"
589
+ fi
590
+
591
+ # Show what changed
592
+ local files_changed
593
+ files_changed=$(git diff --name-only HEAD~1 2>/dev/null | wc -l | tr -d ' ')
594
+ if [[ "$files_changed" -gt 0 ]]; then
595
+ echo -e " ${DIM}Files changed: $files_changed${NC}"
596
+ fi
597
+
567
598
  # Push changes after each iteration (like Ralph)
568
599
  local current_branch=$(git branch --show-current)
569
600
  git push origin "$current_branch" 2>/dev/null || {
@@ -572,7 +603,7 @@ run_build_loop() {
572
603
  }
573
604
 
574
605
  echo ""
575
- echo -e "${DIM} ─────────────────────────────────────────────────────────${NC}"
606
+ hr "─" "$DIM"
576
607
  echo ""
577
608
  done
578
609
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "golem-cc",
3
- "version": "0.1.24",
3
+ "version": "0.1.25",
4
4
  "description": "Autonomous coding loop with Claude - structured specs, ralph loop execution, code simplification",
5
5
  "bin": {
6
6
  "golem-cc": "./bin/install.cjs"