"""Create one synthetic Claude usage session; pass the disposable provider-data root."""
import pathlib,sys,json
root=pathlib.Path(sys.argv[1])
for directory in ['claude/projects/synthetic','codex','xdg-data','xdg-config']:
 (root/directory).mkdir(parents=True,exist_ok=True)
with (root/'claude/projects/synthetic/session.jsonl').open('w') as f:
 for i in (1,2):
  f.write(json.dumps({'type':'assistant','timestamp':'2026-11-24T12:00:00Z','requestId':f'req_{i}','sessionId':'synthetic-one-session','message':{'id':f'msg_{i}','model':'claude-sonnet-4-5','usage':{'input_tokens':1500,'output_tokens':500}}})+'\n')
