"""Usage: python3 seed.py WORKSPACE
Then from each checkout run:
T3CODE_DEV_SEED=0 vp run dev
node apps/server/src/bin.ts project add WORKSPACE --title ws --base-dir .t3
Pair browser, visit /settings/projects; run picker-sample.js once after each
full navigation/reload (first warm-up, then 21 measured runs).
"""
from pathlib import Path
import sys, subprocess
p=Path(sys.argv[1]);p.mkdir(parents=True,exist_ok=False)
for d in range(100):
 q=p/f'dir{d:03d}';q.mkdir()
 for f in range(100): (q/f'file{f:03d}.ts').write_text('export const value = 1;\n')
subprocess.run(['git','init','-q',str(p)],check=True)
