#!/usr/bin/env python3
"""Tampilkan caption final 4 post 19 Okt 2026 dari API (baca ulang, bukan dari file lokal)."""
import sys, re
sys.path.insert(0, "/home/mantapman/.hermes/profiles/atun/workspace")
from repliz_client import get_client

IDS = {
    "uky 14:00": "6ad533ea83496b501fe7a5ac",
    "tslaw 17:00": "6ad5340883496b501fe7b001",
    "tsc 20:00": "6ad533ea83496b501fe7a5bf",
    "das 20:00": "6ad533ea83496b501fe7a5cb",
}
MENTION = re.compile(r"(?<!\S)@\w+")
cli = get_client()
for label, sid in IDS.items():
    d = cli.get_schedule(sid)
    d = d.get("schedule") or d
    desc = d.get("description") or ""
    ada_mention = bool(MENTION.search(desc))
    print("=" * 70)
    print(f"{label} | {d.get('status')} | {d.get('scheduleAt')} | {len(desc)} char | topic={d.get('topic')!r}")
    print(f"title={d.get('title')!r} | mention={ada_mention}")
    print(desc)
