UNPKG

@agentic-intelligence/dom-engine

Version:

Agentic DOM Intelligence - A lightweight TypeScript library for DOM analysis and manipulation, designed for web automation and AI agents

21 lines 832 B
"use strict"; /** * Main DOM analysis engine */ Object.defineProperty(exports, "__esModule", { value: true }); exports.getInteractiveContext = getInteractiveContext; const interactive_finder_1 = require("../read/interactive-finder"); const scroll_1 = require("../actions/scroll"); /** * Main function to get interactive elements from the DOM * @param options - Configuration options for DOM analysis * @returns Object with interactive elements and scroll information */ function getInteractiveContext(options = {}) { const { injectTrackers = false, context } = options; return { interactiveElements: (0, interactive_finder_1.findInteractiveElements)({ injectTrackers, ...(context && { context }) }), scrollInfo: (0, scroll_1.calculateScrollInfo)(context) }; } //# sourceMappingURL=dom-engine.js.map