claude-cook 1.11.5 → 1.11.7
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 +12 -12
package/package.json
CHANGED
package/scripts/pm-loop.sh
CHANGED
|
@@ -197,10 +197,10 @@ print_progress() {
|
|
|
197
197
|
ticket_map=$(find .planning/phases/ -name "TICKET-MAP.md" -print -quit 2>/dev/null || true)
|
|
198
198
|
|
|
199
199
|
if [ -n "$ticket_map" ] && [ -f "$ticket_map" ]; then
|
|
200
|
-
local done_count=$(grep -c "| done " "$ticket_map" 2>/dev/null ||
|
|
201
|
-
local inreview_count=$(grep -c "| inreview " "$ticket_map" 2>/dev/null ||
|
|
202
|
-
local inprogress_count=$(grep -c "| inprogress " "$ticket_map" 2>/dev/null ||
|
|
203
|
-
local todo_count=$(grep -c "| todo " "$ticket_map" 2>/dev/null ||
|
|
200
|
+
local done_count; done_count=$(grep -c "| done " "$ticket_map" 2>/dev/null) || done_count=0
|
|
201
|
+
local inreview_count; inreview_count=$(grep -c "| inreview " "$ticket_map" 2>/dev/null) || inreview_count=0
|
|
202
|
+
local inprogress_count; inprogress_count=$(grep -c "| inprogress " "$ticket_map" 2>/dev/null) || inprogress_count=0
|
|
203
|
+
local todo_count; todo_count=$(grep -c "| todo " "$ticket_map" 2>/dev/null) || todo_count=0
|
|
204
204
|
local total=$((done_count + inreview_count + inprogress_count + todo_count))
|
|
205
205
|
|
|
206
206
|
if [ "$total" -gt 0 ]; then
|
|
@@ -234,10 +234,10 @@ all_tickets_done() {
|
|
|
234
234
|
ticket_map=$(find .planning/phases/ -name "TICKET-MAP.md" -print -quit 2>/dev/null || true)
|
|
235
235
|
|
|
236
236
|
if [ -n "$ticket_map" ] && [ -f "$ticket_map" ]; then
|
|
237
|
-
local done_count=$(grep -c "| done " "$ticket_map" 2>/dev/null ||
|
|
238
|
-
local inreview_count=$(grep -c "| inreview " "$ticket_map" 2>/dev/null ||
|
|
239
|
-
local inprogress_count=$(grep -c "| inprogress " "$ticket_map" 2>/dev/null ||
|
|
240
|
-
local todo_count=$(grep -c "| todo " "$ticket_map" 2>/dev/null ||
|
|
237
|
+
local done_count; done_count=$(grep -c "| done " "$ticket_map" 2>/dev/null) || done_count=0
|
|
238
|
+
local inreview_count; inreview_count=$(grep -c "| inreview " "$ticket_map" 2>/dev/null) || inreview_count=0
|
|
239
|
+
local inprogress_count; inprogress_count=$(grep -c "| inprogress " "$ticket_map" 2>/dev/null) || inprogress_count=0
|
|
240
|
+
local todo_count; todo_count=$(grep -c "| todo " "$ticket_map" 2>/dev/null) || todo_count=0
|
|
241
241
|
local total=$((done_count + inreview_count + inprogress_count + todo_count))
|
|
242
242
|
|
|
243
243
|
if [ "$total" -gt 0 ] && [ "$inreview_count" -eq 0 ] && [ "$inprogress_count" -eq 0 ] && [ "$todo_count" -eq 0 ]; then
|
|
@@ -515,8 +515,8 @@ while true; do
|
|
|
515
515
|
CYCLE_START=$(date +%s)
|
|
516
516
|
CALLS_MADE=$(increment_call_counter)
|
|
517
517
|
update_status "running" "executing" "$CALLS_MADE"
|
|
518
|
-
|
|
519
|
-
EXIT_CODE=$?
|
|
518
|
+
EXIT_CODE=0
|
|
519
|
+
claude -p --dangerously-skip-permissions "$PROMPT" 2>&1 || EXIT_CODE=$?
|
|
520
520
|
CYCLE_END=$(date +%s)
|
|
521
521
|
CYCLE_DURATION=$((CYCLE_END - CYCLE_START))
|
|
522
522
|
|
|
@@ -620,8 +620,8 @@ while true; do
|
|
|
620
620
|
echo "- Attempt: $REPLAN_ATTEMPTS/$MAX_REPLAN_ATTEMPTS" >> "$LOG_FILE"
|
|
621
621
|
|
|
622
622
|
REPLAN_START=$(date +%s)
|
|
623
|
-
|
|
624
|
-
REPLAN_EXIT_CODE=$?
|
|
623
|
+
REPLAN_EXIT_CODE=0
|
|
624
|
+
claude -p --dangerously-skip-permissions "/cook:pm-replan" 2>&1 || REPLAN_EXIT_CODE=$?
|
|
625
625
|
REPLAN_END=$(date +%s)
|
|
626
626
|
REPLAN_DURATION=$((REPLAN_END - REPLAN_START))
|
|
627
627
|
|