import pathlib,subprocess,sys
home=pathlib.Path(sys.argv[1]); checkout=sys.argv[2]
for name in ['model-demo-a','model-demo-b']:
 p=home/'workspaces'/name;p.mkdir(parents=True,exist_ok=True)
 (p/'README.md').write_text('Synthetic model selection evidence.\n')
 def git(*args):subprocess.run(['git','-C',str(p),*args],check=True,capture_output=True)
 git('init','-q','--initial-branch=main');git('config','user.name','Scenario');git('config','user.email','scenario@example.invalid');git('add','.');git('commit','-qm','Initial synthetic data');git('remote','add','origin','https://example.invalid/demo/model-traits.git')
 subprocess.run(['node','apps/server/src/bin.ts','project','add',str(p),'--title',name,'--base-dir',str(home)],cwd=checkout,check=True,capture_output=True)
print('Seeded two synthetic checkouts of one project.')
