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
This commit is contained in:
jjbrunton committed 2026-01-25 21:05:54 +00:00
1 parent 209dc652d2
commit 8d4d9d8750
55 files changed
+11127 -1681

No files matched your search

@@ -0,0 +1,13 @@
/**
* 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";