@jonit-dev/night-watch-cli 1.8.10-beta.2 → 1.8.10-beta.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.
@@ -199,7 +199,6 @@ if [ "${NW_BOARD_ENABLED:-}" = "true" ]; then
199
199
  # Slugify title for branch naming
200
200
  ELIGIBLE_PRD="${ISSUE_NUMBER}-$(printf '%s' "${ISSUE_TITLE_RAW}" | tr '[:upper:]' '[:lower:]' | tr -cs 'a-z0-9' '-' | sed 's/^-\|-$//g')"
201
201
  log "BOARD: Processing issue #${ISSUE_NUMBER}: ${ISSUE_TITLE_RAW}"
202
- trap "rm -f '${LOCK_FILE}'" EXIT
203
202
  fi
204
203
  fi
205
204
 
@@ -218,8 +217,7 @@ if [ -z "${ISSUE_NUMBER}" ]; then
218
217
  fi
219
218
  # Claim the PRD to prevent other runs from selecting it
220
219
  claim_prd "${PRD_DIR}" "${ELIGIBLE_PRD}"
221
- # Update EXIT trap to also release claim
222
- trap "rm -f '${LOCK_FILE}'; release_claim '${PRD_DIR}' '${ELIGIBLE_PRD}'" EXIT
220
+ append_exit_trap "release_claim '${PRD_DIR}' '${ELIGIBLE_PRD}'"
223
221
  fi
224
222
 
225
223
  PRD_NAME="${ELIGIBLE_PRD%.md}"
@@ -187,7 +187,7 @@ fi
187
187
  kill -TERM $$ 2>/dev/null || true
188
188
  ) &
189
189
  WATCHDOG_PID=$!
190
- trap 'kill ${WATCHDOG_PID} 2>/dev/null || true; rm -f "${LOCK_FILE}"' EXIT
190
+ append_exit_trap "kill ${WATCHDOG_PID} 2>/dev/null || true"
191
191
 
192
192
  # Discover open PRs sorted by creation date (oldest first = FIFO)
193
193
  log "INFO: Scanning open PRs..."
@@ -83,7 +83,7 @@ cleanup_on_exit() {
83
83
  rm -f "${LOCK_FILE}"
84
84
  }
85
85
 
86
- trap cleanup_on_exit EXIT
86
+ append_exit_trap "cleanup_on_exit"
87
87
 
88
88
  # Dry-run mode
89
89
  if [ "${NW_DRY_RUN:-0}" = "1" ]; then
@@ -75,7 +75,7 @@ cleanup_on_exit() {
75
75
  rm -f "${LOCK_FILE}"
76
76
  }
77
77
 
78
- trap cleanup_on_exit EXIT
78
+ append_exit_trap "cleanup_on_exit"
79
79
 
80
80
  log "START: Running roadmap slicer for ${PROJECT_DIR}"
81
81
  send_telegram_status_message "📋 Night Watch Planner: started" "Project: ${PROJECT_NAME}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jonit-dev/night-watch-cli",
3
- "version": "1.8.10-beta.2",
3
+ "version": "1.8.10-beta.3",
4
4
  "description": "AI agent that implements your specs, opens PRs, and reviews code overnight. Queue GitHub issues or PRDs, wake up to pull requests.",
5
5
  "type": "module",
6
6
  "bin": {