const fs = require('fs');

const logPath = "C:/Users/nagek/.gemini/antigravity-ide/brain/bae110df-8171-4e55-8939-1194d0bd26dc/.system_generated/logs/transcript_full.jsonl";
const lines = fs.readFileSync(logPath, 'utf8').split('\n');

for (const line of lines) {
    if (!line.trim()) continue;
    try {
        const data = JSON.parse(line);
        if (data.type === 'VIEW_FILE' && data.content) {
            const match = data.content.match(/File Path: `file:\/\/\/(.*?)`/);
            if (match) {
                console.log(match[1]);
            } else {
                console.log("VIEW_FILE found but no path matched");
            }
        }
    } catch(e) {}
}
