uctm 1.0.2 → 1.0.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.
package/agents/builder.md
CHANGED
|
@@ -84,7 +84,9 @@ ls works/${WORK_ID}/*_result.md 2>/dev/null
|
|
|
84
84
|
|
|
85
85
|
→ Build/Lint 명령: `shared-prompt-sections.md` § 2 참조
|
|
86
86
|
|
|
87
|
-
빌드/린트
|
|
87
|
+
- 빌드/린트 스크립트가 존재하지 않으면 해당 check는 **N/A** 처리 (수정 시도 금지).
|
|
88
|
+
- 빌드/린트 실패 시 보고 전에 수정 시도. **최대 2회 재시도**.
|
|
89
|
+
- 3회째도 실패 시 → `status="FAIL"`로 task-result XML 반환하고 종료. 무한 루프 금지.
|
|
88
90
|
|
|
89
91
|
### 3-6. Progress Checkpoint 기록
|
|
90
92
|
|
|
@@ -18,9 +18,11 @@ dispatch 시: <context><language> 필드에 resolved language code 전달
|
|
|
18
18
|
## § 2. Build and Lint Commands
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
|
-
# Auto-detect Build
|
|
21
|
+
# Auto-detect Build (스크립트 존재 시에만 실행)
|
|
22
22
|
if [ -f "package.json" ]; then
|
|
23
|
-
|
|
23
|
+
if node -e "const p=JSON.parse(require('fs').readFileSync('package.json','utf8')); process.exit(p.scripts&&p.scripts.build?0:1)" 2>/dev/null; then
|
|
24
|
+
npm run build 2>&1 || bun run build 2>&1 || yarn build 2>&1
|
|
25
|
+
fi
|
|
24
26
|
elif [ -f "Cargo.toml" ]; then
|
|
25
27
|
cargo build 2>&1
|
|
26
28
|
elif [ -f "go.mod" ]; then
|
|
@@ -31,15 +33,18 @@ elif [ -f "Makefile" ]; then
|
|
|
31
33
|
make build 2>&1 || make 2>&1
|
|
32
34
|
fi
|
|
33
35
|
|
|
34
|
-
# Auto-detect Lint
|
|
36
|
+
# Auto-detect Lint (스크립트 존재 시에만 실행)
|
|
35
37
|
if [ -f "package.json" ]; then
|
|
36
|
-
|
|
38
|
+
if node -e "const p=JSON.parse(require('fs').readFileSync('package.json','utf8')); process.exit(p.scripts&&p.scripts.lint?0:1)" 2>/dev/null; then
|
|
39
|
+
npm run lint 2>&1 || bun run lint 2>&1 || true
|
|
40
|
+
fi
|
|
37
41
|
elif [ -f "pyproject.toml" ]; then
|
|
38
42
|
ruff check . 2>&1 || python -m flake8 . 2>&1 || true
|
|
39
43
|
fi
|
|
40
44
|
```
|
|
41
45
|
|
|
42
|
-
빌드/린트
|
|
46
|
+
- 빌드/린트 스크립트가 존재하지 않으면 **skip (N/A 처리)**.
|
|
47
|
+
- 빌드/린트 실패 시 보고 전에 반드시 수정.
|
|
43
48
|
|
|
44
49
|
---
|
|
45
50
|
|