Files
Sauci/.codex/skills/dev-browser/src/snapshot/index.ts
T
jjbrunton 8d4d9d8750 refactor(swipe): split swipe screen modules
Move swipe screen logic into hooks/services and extract
state-specific UI components to keep files small while
preserving existing behavior.

Reference: US-002
2026-01-25 21:05:54 +00:00

15 lines
562 B
TypeScript

/**
* ARIA Snapshot module for dev-browser.
*
* Provides Playwright-compatible ARIA snapshots with cross-connection ref persistence.
* Refs are stored on window.__devBrowserRefs and survive across Playwright reconnections.
*
* Usage:
* import { getSnapshotScript } from './snapshot';
* const script = getSnapshotScript();
* await page.evaluate(script);
* // Now window.__devBrowser_getAISnapshot() and window.__devBrowser_selectSnapshotRef(ref) are available
*/
export { getSnapshotScript, clearSnapshotScriptCache } from "./browser-script";