@walwal-harness/cli 3.6.5 → 3.6.6

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.
@@ -204,7 +204,9 @@
204
204
  "comment": "Generator → Evaluator 전환 전 결정론적 검증. 실패 시 Evaluator 세션을 열지 않고 Generator로 자동 리라우팅.",
205
205
  "enabled": true,
206
206
  "backend_checks": ["npx tsc --noEmit", "npx eslint . --max-warnings=0", "npx jest --bail --passWithNoTests"],
207
+ "backend_cwd": "",
207
208
  "frontend_checks": ["npx tsc --noEmit", "npx eslint . --max-warnings=0", "npx vitest run --bail 1"],
209
+ "frontend_cwd": "",
208
210
  "timeout_seconds": 120,
209
211
  "on_fail": "reroute_to_generator"
210
212
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@walwal-harness/cli",
3
- "version": "3.6.5",
3
+ "version": "3.6.6",
4
4
  "description": "Production harness for AI agent engineering — Planner, Generator(BE/FE), Evaluator(Func/Visual), optional Brainstormer (requirements refinement). Supports React and Flutter FE stacks.",
5
5
  "bin": {
6
6
  "walwal-harness": "bin/init.js"
@@ -109,15 +109,29 @@ run_pre_eval_gate() {
109
109
 
110
110
  if [ ${#checks[@]} -eq 0 ]; then return 0; fi
111
111
 
112
+ # Resolve cwd for checks: config.pre_eval_gate.frontend_cwd / backend_cwd
113
+ local cwd_key="${location}_cwd"
114
+ local check_cwd
115
+ check_cwd=$(jq -r ".flow.pre_eval_gate.${cwd_key} // empty" "$CONFIG" 2>/dev/null)
116
+ if [ -n "$check_cwd" ] && [ "$check_cwd" != "null" ]; then
117
+ # Relative path from PROJECT_ROOT
118
+ check_cwd="$PROJECT_ROOT/$check_cwd"
119
+ else
120
+ check_cwd="$PROJECT_ROOT"
121
+ fi
122
+
112
123
  echo ""
113
124
  echo " ── Pre-Eval Gate ──────────────────────"
125
+ if [ "$check_cwd" != "$PROJECT_ROOT" ]; then
126
+ echo " cwd: ${check_cwd#$PROJECT_ROOT/}"
127
+ fi
114
128
  local all_pass=true
115
129
  local fail_log=""
116
130
 
117
131
  for cmd in "${checks[@]}"; do
118
132
  printf " %-40s " "$cmd"
119
133
  local output
120
- if output=$(cd "$PROJECT_ROOT" && timeout "${timeout}s" bash -c "$cmd" 2>&1); then
134
+ if output=$(cd "$check_cwd" && timeout "${timeout}s" bash -c "$cmd" 2>&1); then
121
135
  echo "✓"
122
136
  else
123
137
  echo "✗"