import json

try:
    with open(r'C:\Users\Variet-Worker\.gemini\antigravity\bridge\deep-inspect-result.json', 'r', encoding='utf-8', errors='ignore') as f:
        data = json.load(f)

    print("SEARCHING FOR CHAT TEXT IN DUMP...")
    found = False
    with open(r'C:\Users\Variet-Worker\.gemini\antigravity\bridge\deep-inspect-result.json', 'r', encoding='utf-8', errors='ignore') as f:
        raw_text = f.read()
        if '스스로 만들고 스스로' in raw_text:
            print("YES! The chat text IS in the raw JSON dump!")
            found = True
        elif 'Variet' in raw_text:
            print("Found Variet in dump.")
        else:
            print("Chat text not found in raw dump.")

except Exception as e:
    print(f'Error reading JSON: {e}')
