@walwal-harness/cli 5.0.1 → 5.0.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@walwal-harness/cli",
3
- "version": "5.0.1",
3
+ "version": "5.0.2",
4
4
  "description": "Production harness for AI agent engineering — Solo/Team mode, Planner, Generator(BE/FE), Evaluator(Func/Visual), optional Brainstormer. Supports React, Next.js, and Flutter FE stacks.",
5
5
  "bin": {
6
6
  "walwal-harness": "bin/init.js"
@@ -246,11 +246,14 @@ cmd_requeue() {
246
246
  local fid="${1:-}"
247
247
  if [ -z "$fid" ]; then echo "[queue] Usage: requeue <feature_id>"; exit 1; fi
248
248
 
249
+ acquire_queue_lock
250
+
249
251
  jq --arg fid "$fid" '
250
252
  .queue.failed -= [$fid] |
251
253
  .queue.ready += [$fid]
252
254
  ' "$QUEUE" > "${QUEUE}.tmp" && mv "${QUEUE}.tmp" "$QUEUE"
253
255
 
256
+ release_queue_lock
254
257
  echo "[queue] $fid requeued to ready."
255
258
  }
256
259
 
@@ -181,7 +181,12 @@ elif ! tty -s 2>/dev/null; then
181
181
  # Non-terminal environment (e.g., Claude Code agent session)
182
182
  # Try opening Terminal.app on macOS, otherwise detach silently
183
183
  if [ "$(uname)" = "Darwin" ]; then
184
- osascript -e "tell application \"Terminal\" to do script \"tmux attach -t $SESSION_NAME\"" 2>/dev/null && \
184
+ osascript -e "
185
+ tell application \"Terminal\"
186
+ do script \"tmux attach -t $SESSION_NAME\"
187
+ activate
188
+ end tell
189
+ " 2>/dev/null && \
185
190
  echo "OPENED_TERMINAL=true" || echo "Layout ready"
186
191
  else
187
192
  echo "Session created (non-terminal). Attach: tmux attach -t $SESSION_NAME"