"""Seed one isolated running T3 checkout. Start model.py first, then the dev server
with GOOGLE_GEMINI_BASE_URL=http://127.0.0.1:18458/head (or /base) and T3CODE_DEV_SEED=0.
Before server startup, enable providerInstances.antigravity with driver antigravity,
config enabled=true, authMethod=gemini-api-key, apiKey=synthetic-key, binaryPath=agy.
Pass checkout and a fresh synthetic git directory; no production state is needed.
The same invocation was used on both commits. Wait at least 31 real minutes after
session/prompt succeeds; do not send another message, cancel, or shorten the timer.
"""
import json,pathlib,subprocess,sys
root=pathlib.Path(sys.argv[1]).resolve(); demo=pathlib.Path(sys.argv[2]).resolve()
if not demo.exists():
 demo.mkdir(parents=True)
 subprocess.run(['git','init','-b','main',str(demo)],check=True)
 subprocess.run(['git','-C',str(demo),'-c','user.name=Evidence','-c','user.email=evidence@example.com','commit','--allow-empty','-m','Initial synthetic workspace'],check=True)
def t3(*args):
 return subprocess.check_output(['node','apps/server/src/bin.ts',*args],cwd=root,text=True)
print(t3('project','add','--base-dir','.t3','--title','Silent command demo',str(demo)))
print(t3('thread','start','--base-dir','.t3','--title','Silent background hold','--provider','antigravity','--model','gemini-4-hydrogen',str(demo),'Run sleep 7200 with IsDaemon false and WaitMsBeforeAsync 10000. Finish without waiting and do not schedule any wake. Reply Started.','--json'))
