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.
- package/package.json +1 -1
- package/scripts/pm-loop.sh +10 -9
package/package.json
CHANGED
package/scripts/pm-loop.sh
CHANGED
|
@@ -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
|
-
#
|
|
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 ►
|
|
535
|
+
echo " PM ► PHASE TICKETS DONE — advancing..."
|
|
533
536
|
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
|
534
537
|
echo ""
|
|
535
|
-
echo " All tickets complete
|
|
538
|
+
echo " All current phase tickets complete. Next cycle will advance."
|
|
536
539
|
echo ""
|
|
537
540
|
echo "" >> "$LOG_FILE"
|
|
538
|
-
echo "## [$TIMESTAMP]
|
|
541
|
+
echo "## [$TIMESTAMP] PHASE_TICKETS_DONE" >> "$LOG_FILE"
|
|
539
542
|
echo "" >> "$LOG_FILE"
|
|
540
|
-
echo "- All tickets done after $CYCLE cycles" >> "$LOG_FILE"
|
|
541
|
-
|
|
542
|
-
|
|
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 ""
|