"""Update devlog index with the commit entry."""
path = r"c:\Users\Variet-Worker\Desktop\gravity_control\docs\devlog\2026-04-12.md"
entry = "| 001 | 06:12 | AG Native DOM 파싱 v7 전면 재설계 — data-testid/data-step-index 기반 step-aware 파서, UI 노이즈 차단 | `a4d7286` | 🔧 |\n"

with open(path, 'r', encoding='utf-8') as f:
    content = f.read()

content = content.rstrip() + "\n" + entry

with open(path, 'w', encoding='utf-8') as f:
    f.write(content)

print("OK: devlog entry added")
