import json, pathlib, sys
app = pathlib.Path(sys.argv[1])
path = app / 'apps/server/scripts/dev-replay/showcase_transcript.ndjson'
frames = [
 {'type':'expect_outbound','frame':{'kind':'request','method':'session/prompt','params':{}}},
 {'type':'emit_inbound','frame':{'kind':'notification','method':'session/update','params':{'sessionId':'demo','update':{'sessionUpdate':'agent_thought_chunk','content':{'type':'text','text':'Reviewing the synthetic reference notes. ' * 4000}}}}},
 {'type':'emit_inbound','frame':{'kind':'response','method':'session/prompt','result':{'stopReason':'end_turn'}}}
]
path.write_text('\n'.join(json.dumps(x) for x in frames) + '\n')
