#!/bin/bash S=/tmp/claude-1000/-home-jmm-Code-blogposts/7ba1f72e-807b-4749-bcd3-a065da793e6d/scratchpad cd $S set -e echo "=== person-centric crawl ==="; python3 alt_d_people.py 2>&1 | grep -v "^ERR" echo "=== prune stale commit rows to the current merged set ===" python3 - <<'PY' import json SD="/tmp/claude-1000/-home-jmm-Code-blogposts/7ba1f72e-807b-4749-bcd3-a065da793e6d/scratchpad" keep={p["uri"] for p in json.load(open(f"{SD}/merged_pulls.json"))} rows=[l for l in open(f"{SD}/commits.jsonl") if json.loads(l)["uri"] in keep] open(f"{SD}/commits.jsonl","w").writelines(rows) print(f"kept {len(rows)} commit rows of the current merged set ({len(keep)})") PY echo "=== patches ==="; python3 stage3b_blobs.py 2>&1 | grep -v "^ERR" | tail -3 echo "=== handles ==="; python3 stage4_handles.py 2>&1 | grep -v "^ERR" | tail -2 echo "=== analyze + build ==="; python3 analyze.py > analyze_out.txt && python3 build_html.py echo "RUN2_DONE"