#!/usr/bin/env python3
"""Run once per fresh server (started with T3CODE_DEV_SEED=0).
EVIDENCE_CHECKOUT: checkout root; EVIDENCE_HOME: that checkout's .t3;
EVIDENCE_WORKSPACE: same empty synthetic directory for both sides.
Copy the resulting project id into EVIDENCE_PROJECT for drive.py.
"""
import os, subprocess
subprocess.run(['node','apps/server/src/bin.ts','project','add','--base-dir',os.environ['EVIDENCE_HOME'],'--title','Monitor evidence',os.environ['EVIDENCE_WORKSPACE']],cwd=os.environ['EVIDENCE_CHECKOUT'],check=True)
