17 lines
627 B
Python
17 lines
627 B
Python
import json
|
|
|
|
with open(r'C:\Users\Snarf\.gemini\antigravity\brain\c8df04ce-d189-4dab-a6fd-28b36b11fa87\.system_generated\logs\transcript.jsonl', 'r', encoding='utf-8') as f:
|
|
lines = f.readlines()
|
|
|
|
for i, l in enumerate(lines):
|
|
if "fix with option 2" in l.lower() or "power cycle .21" in l.lower():
|
|
print(f"Match at line {i}: {l[:200]}")
|
|
# print context
|
|
for j in range(max(0, i-5), min(len(lines), i+6)):
|
|
try:
|
|
d = json.loads(lines[j])
|
|
print(f" [{j}] {d.get('type')}: {str(d.get('content'))[:150]}")
|
|
except Exception:
|
|
pass
|
|
|