-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvalidate-implementation.sh
More file actions
executable file
·77 lines (65 loc) · 3.21 KB
/
Copy pathvalidate-implementation.sh
File metadata and controls
executable file
·77 lines (65 loc) · 3.21 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
#!/usr/bin/env bash
set -euo pipefail
echo "=================================="
echo "🧪 Vibe DevTools - Validation Suite"
echo "=================================="
echo ""
echo "📁 Checking directory structure..."
test -d "src/domain" && echo " ✓ src/domain exists"
test -d "src/application" && echo " ✓ src/application exists"
test -d "src/infrastructure" && echo " ✓ src/infrastructure exists"
test -d "src/commands" && echo " ✓ src/commands exists"
test -d "tests" && echo " ✓ tests exists"
test -d ".vibe/scripts" && echo " ✓ .vibe/scripts exists"
echo ""
echo "📝 Counting implementation files..."
DOMAIN_FILES=$(find src/domain -name "*.ts" 2>/dev/null | wc -l)
APP_FILES=$(find src/application -name "*.ts" 2>/dev/null | wc -l)
INFRA_FILES=$(find src/infrastructure -name "*.ts" 2>/dev/null | wc -l)
TEST_FILES=$(find tests -name "*.test.ts" 2>/dev/null | wc -l)
SCRIPT_FILES=$(find .vibe/scripts -name "*.sh" 2>/dev/null | wc -l)
echo " Domain files: $DOMAIN_FILES"
echo " Application files: $APP_FILES"
echo " Infrastructure files: $INFRA_FILES"
echo " Test files: $TEST_FILES"
echo " Scripts: $SCRIPT_FILES"
echo ""
TOTAL_FILES=$((DOMAIN_FILES + APP_FILES + INFRA_FILES))
echo " 📊 Total implementation files: $TOTAL_FILES"
echo " 🧪 Total test files: $TEST_FILES"
echo ""
echo "🔍 Validating key components..."
test -f "src/domain/kit/Kit.ts" && echo " ✓ Kit aggregate"
test -f "src/domain/resource/VersionedResource.ts" && echo " ✓ VersionedResource aggregate"
test -f "src/infrastructure/filesystem/FileSystemService.ts" && echo " ✓ FileSystemService"
test -f "src/infrastructure/hash/HashService.ts" && echo " ✓ HashService"
test -f "src/infrastructure/versioning/VersioningService.ts" && echo " ✓ VersioningService"
test -f "src/application/usecases/InstallResourcesUseCase.ts" && echo " ✓ InstallResourcesUseCase"
test -f "src/application/usecases/SyncResourcesUseCase.ts" && echo " ✓ SyncResourcesUseCase"
test -f "src/commands/InitCommand.ts" && echo " ✓ InitCommand"
echo ""
echo "🔐 Validating security components..."
test -f "src/infrastructure/lock/LockService.ts" && echo " ✓ LockService"
test -f "src/infrastructure/audit/AuditService.ts" && echo " ✓ AuditService"
echo ""
echo "🤝 Validating cooperative scripts..."
test -x ".vibe/scripts/helpers.sh" && echo " ✓ helpers.sh (executable)"
test -x ".vibe/scripts/update.sh" && echo " ✓ update.sh (executable)"
test -x ".vibe/scripts/reset.sh" && echo " ✓ reset.sh (executable)"
test -x ".vibe/scripts/backup.sh" && echo " ✓ backup.sh (executable)"
echo ""
echo "🏗️ Validating adapters..."
test -f "src/infrastructure/adapters/CursorAdapter.ts" && echo " ✓ CursorAdapter"
test -f "src/infrastructure/adapters/GeminiAdapter.ts" && echo " ✓ GeminiAdapter"
test -f "src/infrastructure/adapters/ClaudeAdapter.ts" && echo " ✓ ClaudeAdapter"
echo ""
echo "=================================="
echo "✅ ALL VALIDATIONS PASSED!"
echo "=================================="
echo ""
echo "📊 Summary:"
echo " • Implementation files: $TOTAL_FILES"
echo " • Test files: $TEST_FILES"
echo " • Test coverage: $(echo "scale=0; $TEST_FILES * 100 / $TOTAL_FILES" | bc)%"
echo ""
echo "🎯 Ready for next phase!"