-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_autonomous.sh
More file actions
88 lines (78 loc) · 2.77 KB
/
run_autonomous.sh
File metadata and controls
88 lines (78 loc) · 2.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#!/bin/bash
# ==============================================================================
# FULL AUTONOMOUS RUN - Standard Configuration
# ==============================================================================
# Aktiviert alle Features:
# - --autonomous: 100% Tests, 0 Fehler, 1 Stunde Timeout
# - --continuous-sandbox --enable-vnc: 30-Sekunden Docker Test-Zyklen mit VNC
# - --enable-validation: Test-Generierung + Debug Engine
# - --dashboard: Real-time Agent Monitoring
# ==============================================================================
# Default Werte
REQUIREMENTS="${1:-Data/todo_app_requirements.json}"
TECH_STACK="${2:-Data/todo_app_tech_stack.json}"
OUTPUT_DIR="${3:-./output_todo_app_$(date +%Y%m%d_%H%M%S)}"
# Prüfe ob Requirements existieren
if [ ! -f "$REQUIREMENTS" ]; then
echo "ERROR: Requirements file not found: $REQUIREMENTS"
exit 1
fi
# Prüfe ob Tech Stack existieren
if [ ! -f "$TECH_STACK" ]; then
echo "WARNING: Tech stack file not found: $TECH_STACK"
echo "Running without tech stack configuration..."
TECH_STACK=""
fi
echo "============================================================"
echo " FULL AUTONOMOUS CODE GENERATION"
echo "============================================================"
echo " Requirements: $REQUIREMENTS"
echo " Tech Stack: $TECH_STACK"
echo " Output Dir: $OUTPUT_DIR"
echo "============================================================"
echo ""
echo " Features Enabled:"
echo " ✓ Autonomous Mode (100% tests, 0 errors, 1h timeout)"
echo " ✓ Continuous Sandbox Testing (30s cycles)"
echo " ✓ VNC Streaming (http://localhost:6080/vnc.html)"
echo " ✓ Validation Team (Test Generation + Debug Engine)"
echo " ✓ Dashboard (http://localhost:8080)"
echo " ✓ Live Preview (http://localhost:5173)"
echo "============================================================"
echo ""
# Build command
CMD="python run_society_hybrid.py \"$REQUIREMENTS\" \
--output-dir \"$OUTPUT_DIR\" \
--autonomous \
--continuous-sandbox \
--enable-vnc \
--vnc-port 6080 \
--enable-validation \
--validation-team \
--test-framework vitest \
--validation-docker \
--dashboard \
--dashboard-port 8080 \
--shell-stream \
--max-iterations 200 \
--max-time 3600"
# Add tech stack if provided
if [ -n "$TECH_STACK" ]; then
CMD="$CMD --tech-stack \"$TECH_STACK\""
fi
# Execute
echo "Running: $CMD"
echo ""
eval $CMD
# Capture exit code
EXIT_CODE=$?
echo ""
echo "============================================================"
if [ $EXIT_CODE -eq 0 ]; then
echo " ✓ GENERATION COMPLETE"
echo " Output: $OUTPUT_DIR"
else
echo " ✗ GENERATION FAILED (Exit Code: $EXIT_CODE)"
fi
echo "============================================================"
exit $EXIT_CODE