from pathlib import Path import hashlib,json root=Path('C:/laragon/www/portal-investidor');qa=Path('C:/Users/macbook/.config/investmoz/navegacao-consolidacao-QA-20261016/source');old=Path('C:/Users/macbook/.config/investmoz/navegacao-QA-20261016/source');out=Path(__file__).parent files=[] for folder in ['app','config','database/migrations','resources','routes']: for f in (qa/folder).rglob('*'): if not f.is_file():continue rel=f.relative_to(qa).as_posix() if rel.startswith(('resources/js/actions/','resources/js/routes/','resources/js/wayfinder/')):continue prior=root/rel if not prior.exists() or hashlib.sha256(f.read_bytes()).digest()!=hashlib.sha256(prior.read_bytes()).digest():files.append(rel) # Ignore copied QA/bootstrap/local harness material: only source delta against active files. (out/'source-files.json').write_text(json.dumps(sorted(files),indent=2)+'\n','utf-8') print(json.dumps({'sources':len(files),'files':files},indent=2))