@walwal-harness/cli 5.9.2 → 5.9.4
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.9.
|
|
3
|
+
"version": "5.9.4",
|
|
4
4
|
"description": "Production harness for AI agent engineering — Solo/Team mode, Planner, Generator(BE/FE), Evaluator chain (Code-Quality → Functional → Visual), optional Brainstormer. Supports React, Next.js, and Flutter FE stacks.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"walwal-harness": "bin/init.js"
|
|
@@ -82,12 +82,28 @@ render_solo_sprint_overview() {
|
|
|
82
82
|
fi
|
|
83
83
|
|
|
84
84
|
local pipeline sprint_num sprint_status current_agent agent_status retry_count
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
85
|
+
# progress.json 이 깨졌을 때 jq 가 stderr 로 에러를 뿜고 stdout 은 빈 문자열을 반환.
|
|
86
|
+
# 모든 jq 호출에 2>/dev/null + bash fallback 으로 변수 기본값 보장.
|
|
87
|
+
if ! jq empty "$PROGRESS" 2>/dev/null; then
|
|
88
|
+
echo -e " ${RED}⚠ .harness/progress.json 이 손상되었습니다 (invalid JSON).${RESET}"
|
|
89
|
+
echo -e " ${DIM}복구: cp .harness/progress.json{,.bak} && jq . .harness/progress.json.bak${RESET}"
|
|
90
|
+
echo -e " ${DIM}또는: npx @walwal-harness/cli@latest --force (전체 재초기화)${RESET}"
|
|
91
|
+
echo ""
|
|
92
|
+
return
|
|
93
|
+
fi
|
|
94
|
+
pipeline=$(jq -r '.pipeline // "?"' "$PROGRESS" 2>/dev/null)
|
|
95
|
+
sprint_num=$(jq -r '.sprint.number // 0' "$PROGRESS" 2>/dev/null)
|
|
96
|
+
sprint_status=$(jq -r '.sprint.status // "init"' "$PROGRESS" 2>/dev/null)
|
|
97
|
+
current_agent=$(jq -r '.current_agent // "none"' "$PROGRESS" 2>/dev/null)
|
|
98
|
+
agent_status=$(jq -r '.agent_status // "pending"' "$PROGRESS" 2>/dev/null)
|
|
99
|
+
retry_count=$(jq -r '.sprint.retry_count // 0' "$PROGRESS" 2>/dev/null)
|
|
100
|
+
# 빈 문자열 → 기본값 (jq 가 silently fail 한 잔여 케이스 대비)
|
|
101
|
+
pipeline="${pipeline:-?}"
|
|
102
|
+
sprint_num="${sprint_num:-0}"
|
|
103
|
+
sprint_status="${sprint_status:-init}"
|
|
104
|
+
current_agent="${current_agent:-none}"
|
|
105
|
+
agent_status="${agent_status:-pending}"
|
|
106
|
+
retry_count="${retry_count:-0}"
|
|
91
107
|
|
|
92
108
|
local status_color="$RESET"
|
|
93
109
|
case "$agent_status" in
|
|
@@ -54,7 +54,12 @@ RESET="\033[0m"
|
|
|
54
54
|
BG_YELLOW="\033[43m"
|
|
55
55
|
|
|
56
56
|
REFRESH_SEC="${HARNESS_REFRESH:-5}"
|
|
57
|
-
|
|
57
|
+
# 단독 mode 패널은 전체 표시 (충분한 세로 공간), 통합 뷰만 최근 3 개로 압축.
|
|
58
|
+
if [ "$MODE" = "all" ]; then
|
|
59
|
+
RECENT_N="${HARNESS_GOTCHA_RECENT:-3}"
|
|
60
|
+
else
|
|
61
|
+
RECENT_N="${HARNESS_GOTCHA_RECENT:-9999}"
|
|
62
|
+
fi
|
|
58
63
|
|
|
59
64
|
# 렌더 캐시 — 내용이 바뀌지 않으면 redraw 스킵
|
|
60
65
|
LAST_SIG=""
|
|
@@ -104,9 +109,12 @@ count_items() {
|
|
|
104
109
|
}
|
|
105
110
|
|
|
106
111
|
# 최근 N개 항목 제목 추출 (### 헤딩 — 파일 하단부가 최신이라 tail)
|
|
112
|
+
# rule_id 마커 주석(<!-- rule_id: ... -->) 은 시각적 노이즈라 제거
|
|
107
113
|
recent_titles() {
|
|
108
114
|
local f="$1" n="$2"
|
|
109
|
-
grep '^### ' "$f" 2>/dev/null
|
|
115
|
+
grep '^### ' "$f" 2>/dev/null \
|
|
116
|
+
| tail -n "$n" \
|
|
117
|
+
| sed -E 's/^### //; s/[[:space:]]*<!--[[:space:]]*rule_id:[[:space:]]*[^>]*-->[[:space:]]*$//'
|
|
110
118
|
}
|
|
111
119
|
|
|
112
120
|
# agent 이름 → 파일 basename 매핑 (정확/접두 일치)
|