feat: add infrastructure automation scripts and master improvement plan
This commit is contained in:
16
scripts/find_option2.py
Normal file
16
scripts/find_option2.py
Normal file
@@ -0,0 +1,16 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user