Files
Sauci/.codex/skills/dev-browser/src/snapshot/inject.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

14 lines
578 B
TypeScript

/**
* Injectable snapshot script for browser context.
*
* This module provides the getSnapshotScript function that returns a
* self-contained JavaScript string for injection into browser contexts.
*
* The script is injected via page.evaluate() and exposes:
* - window.__devBrowser_getAISnapshot(): Returns ARIA snapshot YAML
* - window.__devBrowser_selectSnapshotRef(ref): Returns element for given ref
* - window.__devBrowserRefs: Map of ref -> Element (persists across connections)
*/
export { getSnapshotScript, clearSnapshotScriptCache } from "./browser-script";