agentic-loop 3.2.4 → 3.2.5

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": "agentic-loop",
3
- "version": "3.2.4",
3
+ "version": "3.2.5",
4
4
  "description": "Autonomous AI coding loop - PRD-driven development with Claude Code",
5
5
  "author": "Allie Jones <allie@allthrive.ai>",
6
6
  "license": "MIT",
@@ -7,9 +7,25 @@ run_unit_tests() {
7
7
  local log_file
8
8
  log_file=$(create_temp_file ".log") || return 1
9
9
 
10
+ # Check if tests should run (supports true, false, "final")
11
+ local test_setting
12
+ test_setting=$(get_config '.checks.test' "")
13
+
14
+ # Handle "final" - only run on last story
15
+ if [[ "$test_setting" == "final" ]]; then
16
+ local remaining
17
+ remaining=$(jq '[.stories[] | select(.passes==false)] | length' "$RALPH_DIR/prd.json" 2>/dev/null || echo "1")
18
+ if [[ "$remaining" -gt 1 ]]; then
19
+ echo " (tests set to 'final' - will run on last story)"
20
+ return 0
21
+ fi
22
+ # Last story - use testCommand if specified, otherwise auto-detect
23
+ test_setting=$(get_config '.checks.testCommand' "")
24
+ fi
25
+
10
26
  # Try common test commands
11
27
  local test_cmd
12
- test_cmd=$(get_config '.checks.test' "")
28
+ test_cmd="$test_setting"
13
29
 
14
30
  if [[ -z "$test_cmd" ]]; then
15
31
  # Auto-detect test command