77 lines
1.5 KiB
TypeScript
77 lines
1.5 KiB
TypeScript
|
|
/**
|
||
|
|
* imhotep-cdp — Chrome DevTools Protocol extraction layer
|
||
|
|
*
|
||
|
|
* Captures browser truth for geometry, topology, and style facts.
|
||
|
|
* Returns raw browser data matching the geometry world schema.
|
||
|
|
*/
|
||
|
|
|
||
|
|
// Session management
|
||
|
|
export {
|
||
|
|
CDPSessionManager,
|
||
|
|
createPlaywrightCDPSession,
|
||
|
|
createSessionManager,
|
||
|
|
type CDPSession,
|
||
|
|
type CDPSessionFactory,
|
||
|
|
} from './session.js'
|
||
|
|
|
||
|
|
// DOM extraction
|
||
|
|
export {
|
||
|
|
extractDOM,
|
||
|
|
resolveSelector,
|
||
|
|
resolveOneSelector,
|
||
|
|
type CDPDOMNode,
|
||
|
|
type DOMNodeRecord,
|
||
|
|
type DOMExtractionResult,
|
||
|
|
} from './dom.js'
|
||
|
|
|
||
|
|
// Geometry extraction
|
||
|
|
export {
|
||
|
|
extractBoxModels,
|
||
|
|
extractFragments,
|
||
|
|
extractTransforms,
|
||
|
|
type BoxRecord,
|
||
|
|
type FragmentRecord,
|
||
|
|
type TransformRecord,
|
||
|
|
type GeometryExtractionResult,
|
||
|
|
type CDPBoxModel,
|
||
|
|
} from './geometry.js'
|
||
|
|
|
||
|
|
// Style extraction
|
||
|
|
export {
|
||
|
|
extractStyles,
|
||
|
|
DisplayEnum,
|
||
|
|
PositionEnum,
|
||
|
|
OverflowEnum,
|
||
|
|
VisibilityEnum,
|
||
|
|
PointerEventsEnum,
|
||
|
|
type StyleRecord,
|
||
|
|
type StyleExtractionConfig,
|
||
|
|
} from './styles.js'
|
||
|
|
|
||
|
|
// Topology extraction
|
||
|
|
export {
|
||
|
|
extractTopology,
|
||
|
|
type ScrollRecord,
|
||
|
|
type ClippingRecord,
|
||
|
|
type TopologyRecord,
|
||
|
|
type TopologyExtractionResult,
|
||
|
|
} from './topology.js'
|
||
|
|
|
||
|
|
// Canonical adapter
|
||
|
|
export {
|
||
|
|
adaptSnapshotToCanonical,
|
||
|
|
type CanonicalGeometryWorld,
|
||
|
|
} from './canonical-adapter.js'
|
||
|
|
|
||
|
|
// Main orchestrator
|
||
|
|
export {
|
||
|
|
CDPExtractor,
|
||
|
|
type ExtractorRequest,
|
||
|
|
type ExtractorResponse,
|
||
|
|
type ExtractorDiagnostic,
|
||
|
|
type GeometryWorldSnapshot,
|
||
|
|
type ProvenanceEntry,
|
||
|
|
type ConfidenceEntry,
|
||
|
|
type ExtractionTraceEntry,
|
||
|
|
} from './extractor.js'
|