claude-fsd 1.5.29 → 1.6.1
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/bin/claudefsd-dev +16 -15
- package/package.json +1 -1
package/bin/claudefsd-dev
CHANGED
|
@@ -263,16 +263,16 @@ When using parallel Task agents, ensure each one:
|
|
|
263
263
|
|
|
264
264
|
IMPORTANT: You must ACTUALLY IMPLEMENT tasks, not just describe what should be done. Use Edit, Write, Bash, and Task tools to complete real work. Begin by analyzing $plan_file and then IMPLEMENT the next task in order."
|
|
265
265
|
|
|
266
|
-
# Save the prompt to the log file
|
|
267
|
-
echo "=== DEVELOPMENT PROMPT ==="
|
|
268
|
-
echo "$DEVELOPMENT_PROMPT"
|
|
269
|
-
echo "=== END PROMPT ==="
|
|
266
|
+
# Save the prompt to the log file and print to screen
|
|
267
|
+
echo "=== DEVELOPMENT PROMPT ===" | tee $LOGFILE
|
|
268
|
+
echo "$DEVELOPMENT_PROMPT" | tee -a $LOGFILE
|
|
269
|
+
echo "=== END PROMPT ===" | tee -a $LOGFILE
|
|
270
270
|
echo "" >> $LOGFILE
|
|
271
271
|
echo "=== OUTPUT ===" >> $LOGFILE
|
|
272
272
|
|
|
273
273
|
# Run claude and append output to the log file
|
|
274
|
-
echo "
|
|
275
|
-
time claude --model $CLAUDE_MODEL --dangerously-skip-permissions -p "$DEVELOPMENT_PROMPT" 2>&1 | tee -a $LOGFILE
|
|
274
|
+
echo -e "\033[36mRunning development with $CLAUDE_MODEL model...\033[0m"
|
|
275
|
+
time claude --model $CLAUDE_MODEL --dangerously-skip-permissions --include-partial-messages -p "$DEVELOPMENT_PROMPT" 2>&1 | tee -a $LOGFILE
|
|
276
276
|
|
|
277
277
|
# Extract what task was worked on from the developer's output
|
|
278
278
|
DEVELOPER_OUTPUT=$(sed -n '/=== OUTPUT ===/,$p' $LOGFILE)
|
|
@@ -317,14 +317,15 @@ $DEVELOPER_OUTPUT
|
|
|
317
317
|
Be thorough but concise in your code review."
|
|
318
318
|
|
|
319
319
|
VERIFIER_LOGFILE="${LOGFILE}-verifier"
|
|
320
|
-
echo "=== VERIFIER PROMPT ==="
|
|
321
|
-
echo "$VERIFIER_PROMPT"
|
|
322
|
-
echo "=== END PROMPT ==="
|
|
320
|
+
echo "=== VERIFIER PROMPT ===" | tee $VERIFIER_LOGFILE
|
|
321
|
+
echo "$VERIFIER_PROMPT" | tee -a $VERIFIER_LOGFILE
|
|
322
|
+
echo "=== END PROMPT ===" | tee -a $VERIFIER_LOGFILE
|
|
323
323
|
echo "" >> $VERIFIER_LOGFILE
|
|
324
324
|
echo "=== OUTPUT ===" >> $VERIFIER_LOGFILE
|
|
325
325
|
|
|
326
326
|
# Run verifier
|
|
327
|
-
|
|
327
|
+
echo -e "\033[36mRunning verifier with $CLAUDE_MODEL model...\033[0m"
|
|
328
|
+
time claude --model $CLAUDE_MODEL --dangerously-skip-permissions --include-partial-messages -p "$VERIFIER_PROMPT" 2>&1 | tee -a $VERIFIER_LOGFILE
|
|
328
329
|
|
|
329
330
|
# Extract verifier output for the tester
|
|
330
331
|
VERIFIER_OUTPUT=$(sed -n '/=== OUTPUT ===/,$p' $VERIFIER_LOGFILE)
|
|
@@ -391,15 +392,15 @@ If ALL tasks in the plan are complete AND all tests pass, output: <VERIFIED_ALL_
|
|
|
391
392
|
"
|
|
392
393
|
|
|
393
394
|
TESTER_LOGFILE="${LOGFILE}-tester"
|
|
394
|
-
echo "=== TESTER PROMPT ==="
|
|
395
|
-
echo "$TESTER_PROMPT"
|
|
396
|
-
echo "=== END PROMPT ==="
|
|
395
|
+
echo "=== TESTER PROMPT ===" | tee $TESTER_LOGFILE
|
|
396
|
+
echo "$TESTER_PROMPT" | tee -a $TESTER_LOGFILE
|
|
397
|
+
echo "=== END PROMPT ===" | tee -a $TESTER_LOGFILE
|
|
397
398
|
echo "" >> $TESTER_LOGFILE
|
|
398
399
|
echo "=== OUTPUT ===" >> $TESTER_LOGFILE
|
|
399
400
|
|
|
400
401
|
# Run tester
|
|
401
|
-
echo "
|
|
402
|
-
time claude --model $CLAUDE_MODEL --dangerously-skip-permissions -p "$TESTER_PROMPT" 2>&1 | tee -a $TESTER_LOGFILE
|
|
402
|
+
echo -e "\033[36mRunning tester with $CLAUDE_MODEL model...\033[0m"
|
|
403
|
+
time claude --model $CLAUDE_MODEL --dangerously-skip-permissions --include-partial-messages -p "$TESTER_PROMPT" 2>&1 | tee -a $TESTER_LOGFILE
|
|
403
404
|
|
|
404
405
|
# Check if tests failed
|
|
405
406
|
if sed -n '/=== OUTPUT ===/,$p' $TESTER_LOGFILE | grep -q "<TESTS_FAILED>"; then
|