-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathverify_coding_mode.sh
More file actions
86 lines (76 loc) · 1.97 KB
/
Copy pathverify_coding_mode.sh
File metadata and controls
86 lines (76 loc) · 1.97 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
#!/bin/bash
# Verify that all coding mode enhancements are in place
echo ""
echo " MYTHOS CODING MODE - VERIFICATION CHECKLIST"
echo ""
echo ""
check_file() {
if [ -f "$1" ]; then
size=$(wc -c < "$1" 2>/dev/null)
echo " $1 (${size} bytes)"
return 0
else
echo " $1 MISSING!"
return 1
fi
}
check_in_file() {
if grep -q "$2" "$1" 2>/dev/null; then
echo " $1 contains '$2'"
return 0
else
echo " $1 missing '$2'"
return 1
fi
}
errors=0
echo "1. CHECKING ENHANCED PROMPTS:"
echo ""
check_file "prompts/coding.txt" || ((errors++))
check_file "prompts/code_review.txt" || ((errors++))
check_file "prompts/debugging.txt" || ((errors++))
check_file "prompts/default.txt" || ((errors++))
echo ""
echo "2. CHECKING PROMPT CONTENT:"
echo ""
check_in_file "prompts/coding.txt" "FIVE VERIFICATION" || ((errors++))
check_in_file "prompts/code_review.txt" "FIVE-PASS CODE REVIEW" || ((errors++))
check_in_file "prompts/debugging.txt" "SYSTEMATIC DEBUGGING" || ((errors++))
check_in_file "prompts/default.txt" "CODE QUALITY STANDARDS" || ((errors++))
echo ""
echo "3. CHECKING DOCUMENTATION:"
echo ""
check_file "CODING_GUIDE.md" || ((errors++))
check_file "CODING_ACTIVATED.txt" || ((errors++))
check_file "FINAL_SUMMARY.md" || ((errors++))
check_file "RUN_THIS.txt" || ((errors++))
echo ""
echo "4. CHECKING UI UPDATES:"
echo ""
check_in_file "ui/terminal_ui.py" "Enhanced Coding Modes" || ((errors++))
check_in_file "config.yaml" "bartowski" || ((errors++))
echo ""
echo "5. CHECKING HELPER SCRIPTS:"
echo ""
check_file "test_coding.sh" || ((errors++))
check_file "run_chat.sh" || ((errors++))
echo ""
echo ""
if [ $errors -eq 0 ]; then
echo " ALL CHECKS PASSED!"
echo ""
echo " ELITE CODING MODE IS READY!"
echo ""
echo "Start with:"
echo " source venv/bin/activate"
echo " python3 main.py --mode chat"
echo " /system coding"
echo ""
else
echo " $errors CHECK(S) FAILED"
echo ""
echo "Some files may be missing or incomplete."
echo "Review the output above for details."
echo ""
fi
echo ""