15 lines
775 B
Python
15 lines
775 B
Python
import json
|
|
|
|
with open(r"C:\Users\Snarf\.gemini\antigravity\brain\67541ce0-c72c-4983-b7f8-7f29d818f6c0\.system_generated\logs\transcript.jsonl", "r", encoding="utf-8") as f:
|
|
for line in f:
|
|
data = json.loads(line)
|
|
content = str(data.get("content", ""))
|
|
calls = str(data.get("tool_calls", ""))
|
|
if "UDM" in content or "UDM" in calls or "unifi" in content.lower():
|
|
calls_list = data.get("tool_calls", [])
|
|
for c in calls_list:
|
|
args = c.get("args", {})
|
|
if "CommandLine" in args and ("udm" in args["CommandLine"].lower() or "140.44.44" in args["CommandLine"] or "14.44.4.1" in args["CommandLine"]):
|
|
print("Step", data.get("step_index"), ":", args["CommandLine"][:120])
|
|
|