claude-cook 1.11.5 → 1.11.6
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 +8 -8
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
|