OUTPUT #938 | 3217 karakter | 46 satır
========== YENİ KOMUT | 21.09.2026 22:20:19 ==========
========== YENİ KOMUT | 21.09.2026 22:20:19 ==========
14:import { windowSnapshot } from './lib/snapshot.js';
45:import { snapshotOwnedBrowserProcesses, survivingOwnedBrowserProcesses } from './lib/process-ownership.js';
99: requestsTotal, requestDuration, pageLoadDuration, snapshotBytes,
198: // and surfaces as a spurious 500 on the click/snapshot that triggered the rebuild.
215: super(`Unknown ref: ${ref} (valid refs: e1-${maxRef}, ${totalRefs} total). Refs reset after navigation - call snapshot first.`);
948: // Capture PID/process snapshot before nulling browser ref.
953: const ownedBrowserProcesses = snapshotOwnedBrowserProcesses(process.pid);
1016: * snapshot captured before browser.close(), below.
1040: // selected later only from the pre-close, starttime-safe ownership snapshot.
1366: await context.tracing.start({ screenshots: true, snapshots: true, sources: false });
1472: tabHealth: foundForContext?.tabState?.healthTracker?.snapshot?.(),
1557: healthSnapshot: ts.healthTracker ? ts.healthTracker.snapshot() : undefined,
2093:// --- Google SERP: combined extraction (refs + snapshot in one DOM pass) ---
2094:// Returns { refs: Map, snapshot: string }
2097: if (!page || page.isClosed()) return { refs, snapshot: '' };
2113: const snapshot = [];
2123: snapshot.push('- heading "' + document.title.replace(/"/g, '\\"') + '"');
2129: snapshot.push('- searchbox "' + name + '" [' + refId + ']: ' + (searchInput.value || ''));
2136: snapshot.push('- navigation:');
2142: snapshot.push(' - link "' + text + '" [' + refId + ']');
2174: snapshot.push('- link "' + title + '" [' + refId + ']:');
2175: snapshot.push(' - /url: ' + href);
2176: if (displayUrl) snapshot.push(' - cite: ' + displayUrl);
2177: if (snippet) snapshot.push(' - text: ' + snippet);
2183: snapshot.push('- group:');
2184: snapshot.push(' - text: ' + blockText);
2189: snapshot.push(' - link "' + linkText + '" [' + refId + ']:');
2190: snapshot.push(' - /url: ' + a.href);
2201: snapshot.push('- heading "People also ask"');
2206: snapshot.push(' - button "' + text + '" [' + refId + ']');
2214: snapshot.push('- navigation "pagination":');
2215: snapshot.push(' - link "Next" [' + refId + ']');
2218: return { snapshot: snapshot.join('\n'), elements };
2230: return { refs, snapshot: extracted.snapshot };
2307: log('warn', 'buildRefs: no aria snapshot');
2403: log('debug', 'buildRefs: iframe snapshot failed', { frameName, error: err.message?.slice(0, 80) });
2436: // Append accessible iframe content to the snapshot YAML
2784: * description: Enable Playwright tracing for this session (screenshots, DOM snapshots, network). Must be set on first tab creation; cannot be added to an existing session.
2984: * description: Navigation result with snapshot.
3129: // Results render asynchronously after DOMContentLoaded -- the snapshot
root@213-238-170-219:/home/hermes/.hermes/hermes-agent#