"""Read a structured top-level timeline map. It is NOT a project backup."""
from resolve_api_connection import connect
from resolve_api_timeline import collect_map, dumps


def main():
    report = collect_map(connect())
    print(dumps(report))
    # Empty tracks remain present. Missing fields are null with explicit issues.
    # Native proxy objects and source paths never enter this JSON structure.
    return 0 if report["complete"] else 2


if __name__ == "__main__":
    raise SystemExit(main())
