@kraftapps-ai/kai 1.8.0 → 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 -3
- package/package.json +1 -1
package/kai
CHANGED
|
@@ -50,9 +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
|
-
"echo '⏳ Dev loop pane — waiting for PM to start the loop...'; cat"
|
|
55
|
-
tmux select-pane -t "${KAI_TMUX_SESSION}:0.0"
|
|
53
|
+
tmux split-window -h -d -t "${KAI_TMUX_SESSION}:0"
|
|
56
54
|
exec tmux attach-session -t "$KAI_TMUX_SESSION"
|
|
57
55
|
fi
|
|
58
56
|
fi
|
|
@@ -306,6 +304,14 @@ fi
|
|
|
306
304
|
iteration=0
|
|
307
305
|
review_failures=0
|
|
308
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
|
+
|
|
309
315
|
while :; do
|
|
310
316
|
iteration=$((iteration + 1))
|
|
311
317
|
REMAINING=$(jq '[.userStories[] | select(.passes == false)] | length' "$PRD_FILE")
|
|
@@ -398,6 +404,7 @@ If all pass: REVIEW_PASS"
|
|
|
398
404
|
fi
|
|
399
405
|
|
|
400
406
|
echo "Done in $((elapsed / 60))m $((elapsed % 60))s"
|
|
407
|
+
cleanup_orphans
|
|
401
408
|
echo ""
|
|
402
409
|
done
|
|
403
410
|
LOOPEOF
|