返回 DeepSeek-Reasonix
snapshotScript.ts
根目录 / desktop / electron / src / main / browser / snapshotScript.ts
1 /// <reference lib="dom" />
2 // Wire types only. The version-qualified Playwright adapter owns semantics;
3 // no handwritten fallback is shipped when its build contract fails.
4 export interface SnapshotInput { key: string; snapshotId: string; prefix: string; selector: string; budget: number }
5 export interface SnapshotOutput { docId: string; tree: string; refs: number; nodes: number; truncated: number }
6 export interface PageRegistry { docId: string; snapshotId: string; refs: Map<string, Element> }
7
7 lines TYPESCRIPT