/ skills / dev-browser / src / snapshot / index.ts
index.ts
 1  /**
 2   * ARIA Snapshot module for dev-browser.
 3   *
 4   * Provides Playwright-compatible ARIA snapshots with cross-connection ref persistence.
 5   * Refs are stored on window.__devBrowserRefs and survive across Playwright reconnections.
 6   *
 7   * Usage:
 8   *   import { getSnapshotScript } from './snapshot';
 9   *   const script = getSnapshotScript();
10   *   await page.evaluate(script);
11   *   // Now window.__devBrowser_getAISnapshot() and window.__devBrowser_selectSnapshotRef(ref) are available
12   */
13  
14  export { getSnapshotScript, clearSnapshotScriptCache } from "./browser-script";