@kraftapps-ai/kai 1.8.1 → 1.8.3
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/kai +10 -2
- package/package.json +1 -1
package/kai
CHANGED
|
@@ -50,8 +50,7 @@ if [ "$KAI_TMUX" = true ]; then
|
|
|
50
50
|
# New session: pane 0 = PM, pane 1 = dev loop (waiting)
|
|
51
51
|
tmux new-session -d -s "$KAI_TMUX_SESSION" \
|
|
52
52
|
"kai --no-tmux $(printf '%q ' "$@")"
|
|
53
|
-
tmux split-window -h -t "${KAI_TMUX_SESSION}:0"
|
|
54
|
-
tmux select-pane -t "${KAI_TMUX_SESSION}:0.0"
|
|
53
|
+
tmux split-window -h -d -t "${KAI_TMUX_SESSION}:0"
|
|
55
54
|
exec tmux attach-session -t "$KAI_TMUX_SESSION"
|
|
56
55
|
fi
|
|
57
56
|
fi
|
|
@@ -305,6 +304,14 @@ fi
|
|
|
305
304
|
iteration=0
|
|
306
305
|
review_failures=0
|
|
307
306
|
|
|
307
|
+
# Kill orphaned child processes (vitest, esbuild, etc.) between iterations
|
|
308
|
+
cleanup_orphans() {
|
|
309
|
+
for proc in vitest esbuild playwright; do
|
|
310
|
+
pkill -f "$proc" 2>/dev/null || true
|
|
311
|
+
done
|
|
312
|
+
}
|
|
313
|
+
trap cleanup_orphans EXIT
|
|
314
|
+
|
|
308
315
|
while :; do
|
|
309
316
|
iteration=$((iteration + 1))
|
|
310
317
|
REMAINING=$(jq '[.userStories[] | select(.passes == false)] | length' "$PRD_FILE")
|
|
@@ -397,6 +404,7 @@ If all pass: REVIEW_PASS"
|
|
|
397
404
|
fi
|
|
398
405
|
|
|
399
406
|
echo "Done in $((elapsed / 60))m $((elapsed % 60))s"
|
|
407
|
+
cleanup_orphans
|
|
400
408
|
echo ""
|
|
401
409
|
done
|
|
402
410
|
LOOPEOF
|