claude-cook 1.11.1 → 1.11.2

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/package.json +1 -1
  2. package/scripts/pm-loop.sh +10 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-cook",
3
- "version": "1.11.1",
3
+ "version": "1.11.2",
4
4
  "description": "A meta-prompting, context engineering and spec-driven development system for Claude Code, OpenCode and Gemini by TÂCHES.",
5
5
  "bin": {
6
6
  "claude-cook": "bin/install.js"
@@ -524,24 +524,25 @@ while true; do
524
524
  update_status "running" "completed_cycle" "$(cat "$CALL_COUNT_FILE" 2>/dev/null || echo 0)"
525
525
  print_progress
526
526
 
527
- # Exit if all tickets are done
527
+ # Check if all tickets in current phase are done
528
+ # DON'T exit — let pm-cycle handle phase advancement.
529
+ # pm-cycle will detect PHASE_COMPLETE and advance to next phase,
530
+ # or detect MILESTONE_COMPLETE and exit with code 42.
528
531
  if all_tickets_done; then
529
532
  TIMESTAMP=$(date '+%Y-%m-%d %H:%M:%S')
530
533
  echo ""
531
534
  echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
532
- echo " PM ► ALL TICKETS DONE"
535
+ echo " PM ► PHASE TICKETS DONE — advancing..."
533
536
  echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
534
537
  echo ""
535
- echo " All tickets complete after $CYCLE cycles."
538
+ echo " All current phase tickets complete. Next cycle will advance."
536
539
  echo ""
537
540
  echo "" >> "$LOG_FILE"
538
- echo "## [$TIMESTAMP] LOOP_EXIT" >> "$LOG_FILE"
541
+ echo "## [$TIMESTAMP] PHASE_TICKETS_DONE" >> "$LOG_FILE"
539
542
  echo "" >> "$LOG_FILE"
540
- echo "- All tickets done after $CYCLE cycles" >> "$LOG_FILE"
541
- update_status "completed" "all_tickets_done" "$(cat "$CALL_COUNT_FILE" 2>/dev/null || echo 0)"
542
- rm -f "$PID_FILE"
543
- notify "COOK PM" "All tickets done! Phase complete after $CYCLE cycles."
544
- exit 0
543
+ echo "- All tickets done in current phase after $CYCLE cycles" >> "$LOG_FILE"
544
+ echo "- Continuing loop pm-cycle will advance to next phase" >> "$LOG_FILE"
545
+ notify "COOK PM" "Phase tickets done! Advancing to next phase..."
545
546
  fi
546
547
 
547
548
  echo ""