16 lines
530 B
Python
16 lines
530 B
Python
import json
|
|
|
|
with open('/home/hoon/.gemini/antigravity-ide/brain/e07d5342-58aa-4443-a5b3-73bde0f593dd/.system_generated/logs/transcript.jsonl', 'r') as f:
|
|
messages = []
|
|
for line in f:
|
|
try:
|
|
data = json.loads(line)
|
|
except:
|
|
continue
|
|
if data.get('type') == 'USER_INPUT' and data.get('step_index') < 5795:
|
|
messages.append((data.get('step_index'), data.get('content')))
|
|
|
|
if len(messages) >= 3:
|
|
for idx in range(-3, 0):
|
|
print(messages[idx])
|