"""Read-only route and existing restored/package/runtime graph snapshot; no restore or service access.""" from pathlib import Path import hashlib,json,re,sys from datetime import datetime,timezone root=Path('/Users/dohertj2/Desktop/OtOpcUa') out=Path(sys.argv[1]);assert not out.exists(),'Use a new evidence path' sha=lambda p:hashlib.sha256(p.read_bytes()).hexdigest() components=root/'src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components' rows=[] for p in sorted(components.rglob('*.razor')): text=p.read_text();routes=re.findall(r'^@page\s+"([^"]+)"',text,re.M) if not routes:continue rows.append({'file':str(p.relative_to(root)),'sha256':sha(p),'routes':routes,'pageTitleSourceOccurrences':len(re.findall(r'