import os
os.makedirs('.codewiki/dd/FUW00927SFBean', exist_ok=True)

# Read parts from the intermediate scripts
# Part 1 was already written to the file by gen_all.py
# Part 2 was appended by append_sections3to5.py  
# Part 3 was appended by append_sections6to7.py
# They all share the same file, so it should already be complete

path = '.codewiki/dd/FUW00927SFBean/storeModelData.md'
with open(path, 'r', encoding='utf-8') as f:
    content = f.read()

print("Total lines:", content.count('
'))
print("Has Section 1:", "## 1. Role" in content)
print("Has Section 2:", "## 2. Processing Pattern" in content)
print("Has Section 3:", "## 3. Parameter Analysis" in content)
print("Has Section 4:", "## 4. CRUD Operations" in content)
print("Has Section 5:", "## 5. Dependency Trace" in content)
print("Has Section 6:", "## 6. Per-Branch" in content)
print("Has Section 7:", "## 7. Glossary" in content)
print("Has mermaid:", "flowchart TD" in content)
