#!/usr/bin/env python3
"""Run once in each fresh evidence checkout, before starting its dev server.
Then run: T3CODE_DEV_SEED=0 vp run dev
Configure EVIDENCE_PROVIDER and EVIDENCE_MODEL privately for driver.py.
The example provider uses existing environment credentials, never copied data.
"""
import json,pathlib
state=pathlib.Path('.t3/userdata')
state.mkdir(parents=True,exist_ok=True)
p=state/'settings.json'
if p.exists(): raise RuntimeError('Use a fresh evidence checkout')
p.write_text(json.dumps({'providerInstances':{'cursor':{'driver':'cursor','displayName':'Evidence agent','enabled':True,'config':{}}}}))
