lobster-cli 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +389 -0
- package/dist/agent/core.js +1013 -0
- package/dist/agent/core.js.map +1 -0
- package/dist/agent/index.js +1027 -0
- package/dist/agent/index.js.map +1 -0
- package/dist/brain/index.js +60 -0
- package/dist/brain/index.js.map +1 -0
- package/dist/browser/dom/index.js +1096 -0
- package/dist/browser/dom/index.js.map +1 -0
- package/dist/browser/index.js +2034 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/manager.js +86 -0
- package/dist/browser/manager.js.map +1 -0
- package/dist/browser/page-adapter.js +1345 -0
- package/dist/browser/page-adapter.js.map +1 -0
- package/dist/cascade/index.js +138 -0
- package/dist/cascade/index.js.map +1 -0
- package/dist/config/index.js +110 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/schema.js +66 -0
- package/dist/config/schema.js.map +1 -0
- package/dist/discover/index.js +545 -0
- package/dist/discover/index.js.map +1 -0
- package/dist/index.js +5529 -0
- package/dist/index.js.map +1 -0
- package/dist/lib.js +4206 -0
- package/dist/lib.js.map +1 -0
- package/dist/llm/client.js +379 -0
- package/dist/llm/client.js.map +1 -0
- package/dist/llm/index.js +397 -0
- package/dist/llm/index.js.map +1 -0
- package/dist/llm/openai-client.js +214 -0
- package/dist/llm/openai-client.js.map +1 -0
- package/dist/output/index.js +93 -0
- package/dist/output/index.js.map +1 -0
- package/dist/pipeline/index.js +802 -0
- package/dist/pipeline/index.js.map +1 -0
- package/dist/router/decision.js +80 -0
- package/dist/router/decision.js.map +1 -0
- package/dist/router/index.js +3443 -0
- package/dist/router/index.js.map +1 -0
- package/dist/types/index.js +23 -0
- package/dist/types/index.js.map +1 -0
- package/logo.svg +11 -0
- package/package.json +65 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/browser/dom/flat-tree.ts","../../../src/browser/dom/snapshot.ts","../../../src/browser/dom/semantic-tree.ts","../../../src/browser/dom/markdown.ts","../../../src/browser/dom/interactive.ts","../../../src/browser/dom/form-state.ts"],"sourcesContent":["/**\n * Script that runs inside the browser to extract a flat DOM tree\n * with indexed interactive elements — the format the AI agent uses.\n *\n * Based on Page Agent's DOM extraction approach.\n */\nexport const FLAT_TREE_SCRIPT = `\n(() => {\n const INTERACTIVE_TAGS = new Set([\n 'a', 'button', 'input', 'select', 'textarea', 'details', 'summary',\n 'label', 'option', 'fieldset', 'legend',\n ]);\n\n const INTERACTIVE_ROLES = new Set([\n 'button', 'link', 'textbox', 'checkbox', 'radio', 'combobox',\n 'listbox', 'menu', 'menuitem', 'tab', 'switch', 'slider',\n 'searchbox', 'spinbutton', 'option', 'menuitemcheckbox', 'menuitemradio',\n ]);\n\n const ATTR_WHITELIST = [\n 'type', 'role', 'aria-label', 'aria-expanded', 'aria-selected',\n 'aria-checked', 'aria-disabled', 'placeholder', 'title', 'href',\n 'value', 'name', 'alt', 'src',\n ];\n\n let highlightIndex = 0;\n const nodes = {};\n const selectorMap = {};\n\n function isVisible(el) {\n if (el.offsetWidth === 0 && el.offsetHeight === 0) return false;\n const style = getComputedStyle(el);\n if (style.display === 'none' || style.visibility === 'hidden' || style.opacity === '0') return false;\n return true;\n }\n\n function isInteractive(el) {\n const tag = el.tagName.toLowerCase();\n if (INTERACTIVE_TAGS.has(tag)) return true;\n const role = el.getAttribute('role');\n if (role && INTERACTIVE_ROLES.has(role)) return true;\n if (el.getAttribute('contenteditable') === 'true') return true;\n if (el.getAttribute('tabindex') !== null && parseInt(el.getAttribute('tabindex')) >= 0) return true;\n if (el.onclick || el.getAttribute('onclick')) return true;\n return false;\n }\n\n function getAttributes(el) {\n const attrs = {};\n for (const attr of ATTR_WHITELIST) {\n const val = el.getAttribute(attr);\n if (val !== null && val !== '') attrs[attr] = val;\n }\n return attrs;\n }\n\n function getScrollable(el) {\n const style = getComputedStyle(el);\n const overflowY = style.overflowY;\n const overflowX = style.overflowX;\n const isScrollableY = (overflowY === 'auto' || overflowY === 'scroll') && el.scrollHeight > el.clientHeight;\n const isScrollableX = (overflowX === 'auto' || overflowX === 'scroll') && el.scrollWidth > el.clientWidth;\n if (!isScrollableY && !isScrollableX) return null;\n return {\n left: el.scrollLeft,\n top: el.scrollTop,\n right: el.scrollWidth - el.clientWidth - el.scrollLeft,\n bottom: el.scrollHeight - el.clientHeight - el.scrollTop,\n };\n }\n\n function walk(el, parentId) {\n if (!el || el.nodeType === 8) return; // skip comments\n\n if (el.nodeType === 3) { // text node\n const text = el.textContent.trim();\n if (!text) return;\n const id = 'text_' + Math.random().toString(36).slice(2, 8);\n nodes[id] = { id, tagName: '#text', text, parentId };\n if (parentId && nodes[parentId]) {\n nodes[parentId].children = nodes[parentId].children || [];\n nodes[parentId].children.push(id);\n }\n return;\n }\n\n if (el.nodeType !== 1) return; // only elements\n\n const tag = el.tagName.toLowerCase();\n if (['script', 'style', 'noscript', 'svg', 'path'].includes(tag)) return;\n if (!isVisible(el)) return;\n\n const id = tag + '_' + Math.random().toString(36).slice(2, 8);\n const interactive = isInteractive(el);\n const node = {\n id,\n tagName: tag,\n attributes: getAttributes(el),\n parentId,\n children: [],\n isInteractive: interactive,\n };\n\n if (interactive) {\n node.highlightIndex = highlightIndex;\n selectorMap[highlightIndex] = id;\n highlightIndex++;\n }\n\n const scrollable = getScrollable(el);\n if (scrollable) node.scrollable = scrollable;\n\n const text = [];\n for (const child of el.childNodes) {\n if (child.nodeType === 3 && child.textContent.trim()) {\n text.push(child.textContent.trim());\n }\n }\n if (text.length > 0) node.text = text.join(' ').slice(0, 200);\n\n nodes[id] = node;\n\n if (parentId && nodes[parentId]) {\n nodes[parentId].children.push(id);\n }\n\n for (const child of el.children) {\n walk(child, id);\n }\n }\n\n const rootId = 'root';\n nodes[rootId] = { id: rootId, tagName: 'body', children: [], attributes: {} };\n for (const child of document.body.children) {\n walk(child, rootId);\n }\n\n return { rootId, map: nodes, selectorMap };\n})()\n`;\n\n/**\n * Convert a FlatDomTree into the indexed text format that the LLM agent reads.\n * Example output:\n * [0]<button type=submit>Search</>\n * [1]<input type=text placeholder=\"Enter query\" />\n */\nexport function flatTreeToString(tree: { rootId: string; map: Record<string, any> }): string {\n const lines: string[] = [];\n\n function walk(nodeId: string, depth: number) {\n const node = tree.map[nodeId];\n if (!node) return;\n\n const indent = '\\t'.repeat(depth);\n\n if (node.tagName === '#text') {\n if (node.text) lines.push(`${indent}${node.text}`);\n return;\n }\n\n const attrs = node.attributes || {};\n const attrStr = Object.entries(attrs)\n .map(([k, v]) => (v === '' ? k : `${k}=\"${v}\"`))\n .join(' ');\n\n const prefix = node.highlightIndex !== undefined ? `[${node.highlightIndex}]` : '';\n const scrollInfo = node.scrollable\n ? ` |scroll: ${Math.round(node.scrollable.top)}px up, ${Math.round(node.scrollable.bottom)}px down|`\n : '';\n\n const text = node.text || '';\n const tag = node.tagName;\n\n if (prefix || text || node.children?.length > 0) {\n const opening = `${indent}${prefix}<${tag}${attrStr ? ' ' + attrStr : ''}${scrollInfo}>`;\n\n if (!node.children?.length || (node.children.length === 0 && text)) {\n lines.push(`${opening}${text}</>`);\n } else {\n lines.push(`${opening}${text}`);\n for (const childId of node.children || []) {\n walk(childId, depth + 1);\n }\n }\n } else {\n for (const childId of node.children || []) {\n walk(childId, depth);\n }\n }\n }\n\n walk(tree.rootId, 0);\n return lines.join('\\n');\n}\n","/**\n * Advanced DOM snapshot script — runs inside the browser.\n * Multi-stage pruning pipeline producing LLM-optimized output.\n *\n * Stages:\n * 1. Walk DOM, collect visibility + layout + interactivity signals\n * 2. Prune invisible, zero-area, non-content elements\n * 3. SVG & decoration collapse\n * 4. Shadow DOM traversal\n * 5. Same-origin iframe extraction\n * 6. Bounding-box parent-child dedup (link/button wrapping)\n * 7. Paint-order occlusion detection (overlay/modal coverage)\n * 8. Attribute whitelist filtering\n * 9. Ad/tracker filtering\n * 10. Scroll position info\n * 11. data-ref annotation for targeting\n * 12. Token-efficient serialization with interactive indices\n */\n/**\n * Build snapshot script with optional previous hashes for diff marking.\n * Elements new since last snapshot get a `*` prefix on their index.\n */\nexport function buildSnapshotScript(previousHashes?: string[]): string {\n return SNAPSHOT_SCRIPT_FN(previousHashes || []);\n}\n\nfunction SNAPSHOT_SCRIPT_FN(prevHashes: string[]): string {\n return `\n(() => {\n let idx = 0;\n const __prevHashes = new Set(${JSON.stringify(prevHashes)});\n const __currentHashes = [];\n`;\n}\n\nexport const SNAPSHOT_SCRIPT = `\n(() => {\n let idx = 0;\n const __prevHashes = (window.__lobster_prev_hashes) ? new Set(window.__lobster_prev_hashes) : null;\n const __currentHashes = [];\n\n const SKIP_TAGS = new Set([\n 'script','style','noscript','svg','path','meta','link','head',\n 'template','slot','colgroup','col',\n ]);\n\n const INTERACTIVE_TAGS = new Set([\n 'a','button','input','select','textarea','details','summary','label',\n ]);\n\n const INTERACTIVE_ROLES = new Set([\n 'button','link','textbox','checkbox','radio','combobox','listbox',\n 'menu','menuitem','tab','switch','slider','searchbox','spinbutton',\n 'option','menuitemcheckbox','menuitemradio','treeitem',\n ]);\n\n const ATTR_WHITELIST = [\n 'type','role','aria-label','aria-expanded','aria-selected','aria-checked',\n 'aria-disabled','aria-haspopup','aria-pressed','placeholder','title',\n 'href','value','name','alt','src','action','method','for',\n 'data-testid','data-id','contenteditable','tabindex',\n ];\n\n const AD_PATTERNS = /ad[-_]?banner|ad[-_]?container|google[-_]?ad|doubleclick|adsbygoogle|sponsored|^ad$/i;\n\n // ── Stage 1: Visibility check ──\n function isVisible(el) {\n if (el.offsetWidth === 0 && el.offsetHeight === 0 && el.tagName !== 'INPUT') return false;\n const s = getComputedStyle(el);\n if (s.display === 'none') return false;\n if (s.visibility === 'hidden' || s.visibility === 'collapse') return false;\n if (s.opacity === '0') return false;\n if (s.clipPath === 'inset(100%)') return false;\n // Check for offscreen positioning\n const rect = el.getBoundingClientRect();\n if (rect.right < 0 || rect.bottom < 0) return false;\n return true;\n }\n\n // ── Stage 2: Interactive detection ──\n function isInteractive(el) {\n const tag = el.tagName.toLowerCase();\n if (INTERACTIVE_TAGS.has(tag)) {\n // Skip disabled elements\n if (el.disabled) return false;\n // Skip hidden inputs\n if (tag === 'input' && el.type === 'hidden') return false;\n return true;\n }\n const role = el.getAttribute('role');\n if (role && INTERACTIVE_ROLES.has(role)) return true;\n if (el.contentEditable === 'true') return true;\n if (el.tabIndex >= 0 && el.getAttribute('tabindex') !== null) return true;\n if (el.onclick) return true;\n return false;\n }\n\n // ── Stage 8: Attribute filtering ──\n function getAttrs(el) {\n const parts = [];\n for (const name of ATTR_WHITELIST) {\n let v = el.getAttribute(name);\n if (v === null || v === '') continue;\n // Truncate long values\n if (v.length > 80) v = v.slice(0, 77) + '...';\n // Skip href=\"javascript:...\"\n if (name === 'href' && v.startsWith('javascript:')) continue;\n parts.push(name + '=' + v);\n }\n return parts.length ? ' ' + parts.join(' ') : '';\n }\n\n // ── Stage 9: Ad filtering ──\n function isAd(el) {\n const id = el.id || '';\n const cls = el.className || '';\n if (typeof cls === 'string' && AD_PATTERNS.test(cls)) return true;\n if (AD_PATTERNS.test(id)) return true;\n if (el.tagName === 'IFRAME' && AD_PATTERNS.test(el.src || '')) return true;\n return false;\n }\n\n // ── Stage 10: Scroll info ──\n function getScrollInfo(el) {\n const s = getComputedStyle(el);\n const overflowY = s.overflowY;\n const overflowX = s.overflowX;\n const scrollableY = (overflowY === 'auto' || overflowY === 'scroll') && el.scrollHeight > el.clientHeight;\n const scrollableX = (overflowX === 'auto' || overflowX === 'scroll') && el.scrollWidth > el.clientWidth;\n if (!scrollableY && !scrollableX) return '';\n\n const parts = [];\n if (scrollableY) {\n const up = Math.round(el.scrollTop);\n const down = Math.round(el.scrollHeight - el.clientHeight - el.scrollTop);\n if (up > 0) parts.push(up + 'px up');\n if (down > 0) parts.push(down + 'px down');\n }\n if (scrollableX) {\n const left = Math.round(el.scrollLeft);\n const right = Math.round(el.scrollWidth - el.clientWidth - el.scrollLeft);\n if (left > 0) parts.push(left + 'px left');\n if (right > 0) parts.push(right + 'px right');\n }\n return parts.length ? ' |scroll: ' + parts.join(', ') + '|' : '';\n }\n\n // ── Stage 6: Bounding-box dedup ──\n // If a parent and child are both interactive and have ~same bounding box,\n // skip the parent (e.g., <a><button>Click</button></a>)\n function isWrappingInteractive(el) {\n if (!isInteractive(el)) return false;\n const rect = el.getBoundingClientRect();\n if (rect.width === 0 || rect.height === 0) return false;\n for (const child of el.children) {\n if (!isInteractive(child)) continue;\n const cr = child.getBoundingClientRect();\n const overlapX = Math.min(rect.right, cr.right) - Math.max(rect.left, cr.left);\n const overlapY = Math.min(rect.bottom, cr.bottom) - Math.max(rect.top, cr.top);\n const overlapArea = Math.max(0, overlapX) * Math.max(0, overlapY);\n const parentArea = rect.width * rect.height;\n if (parentArea > 0 && overlapArea / parentArea > 0.85) return true;\n }\n return false;\n }\n\n // ── Stage 7: Occlusion detection ──\n function isOccluded(el) {\n const rect = el.getBoundingClientRect();\n if (rect.width === 0 || rect.height === 0) return false;\n const cx = rect.left + rect.width / 2;\n const cy = rect.top + rect.height / 2;\n const topEl = document.elementFromPoint(cx, cy);\n if (!topEl) return false;\n if (topEl === el || el.contains(topEl) || topEl.contains(el)) return false;\n // Check z-index — if top element is a modal/overlay, mark as occluded\n const topZ = parseInt(getComputedStyle(topEl).zIndex) || 0;\n const elZ = parseInt(getComputedStyle(el).zIndex) || 0;\n return topZ > elZ + 10;\n }\n\n // ── Stage 5: Iframe content extraction ──\n function getIframeContent(iframe, depth, maxDepth) {\n try {\n const doc = iframe.contentDocument;\n if (!doc || !doc.body) return '';\n return '\\\\n' + walkNode(doc.body, depth, maxDepth);\n } catch { return ''; }\n }\n\n // ── Stage 4: Shadow DOM traversal ──\n function getShadowContent(el, depth, maxDepth) {\n if (!el.shadowRoot) return '';\n let out = '';\n for (const child of el.shadowRoot.childNodes) {\n out += walkNode(child, depth, maxDepth);\n }\n return out;\n }\n\n // ── Input value hint ──\n function getInputHint(el) {\n const tag = el.tagName.toLowerCase();\n if (tag === 'input') {\n const type = el.type || 'text';\n const val = el.value || '';\n const checked = el.checked;\n if (type === 'checkbox' || type === 'radio') {\n return checked ? ' [checked]' : ' [unchecked]';\n }\n if (val) return ' value=\"' + val.slice(0, 50) + '\"';\n }\n if (tag === 'textarea' && el.value) {\n return ' value=\"' + el.value.slice(0, 50) + '\"';\n }\n if (tag === 'select' && el.selectedOptions?.length) {\n return ' selected=\"' + el.selectedOptions[0].text.slice(0, 40) + '\"';\n }\n return '';\n }\n\n const MAX_DEPTH = 25;\n const MAX_TEXT = 150;\n\n function walkNode(node, depth, maxDepth) {\n if (depth > maxDepth) return '';\n if (!node) return '';\n\n // Text node\n if (node.nodeType === 3) {\n const t = node.textContent.trim();\n if (!t) return '';\n const text = t.length > MAX_TEXT ? t.slice(0, MAX_TEXT) + '...' : t;\n return ' '.repeat(depth) + text + '\\\\n';\n }\n\n // Comment node — skip\n if (node.nodeType === 8) return '';\n\n // Only element nodes from here\n if (node.nodeType !== 1) return '';\n\n const el = node;\n const tag = el.tagName.toLowerCase();\n\n // ── Stage 3: Skip tags ──\n if (SKIP_TAGS.has(tag)) return '';\n\n // ── Stage 2: Visibility ──\n if (!isVisible(el)) return '';\n\n // ── Stage 9: Ad filtering ──\n if (isAd(el)) return '';\n\n // ── Stage 6: Bbox dedup — skip wrapping interactive parent ──\n const skipSelf = isWrappingInteractive(el);\n\n const indent = ' '.repeat(depth);\n const inter = !skipSelf && isInteractive(el);\n let prefix = '';\n if (inter) {\n const thisIdx = idx++;\n // Hash: tag + text + key attributes for diff tracking\n const hashText = tag + ':' + (el.textContent || '').trim().slice(0, 40) + ':' + (el.getAttribute('href') || '') + ':' + (el.getAttribute('aria-label') || '');\n __currentHashes.push(hashText);\n const isNew = __prevHashes && __prevHashes.size > 0 && !__prevHashes.has(hashText);\n prefix = isNew ? '*[' + thisIdx + ']' : '[' + thisIdx + ']';\n }\n\n // ── Stage 11: Annotate with data-ref ──\n if (inter) {\n try { el.dataset.ref = String(idx - 1); } catch {}\n }\n\n // ── Stage 7: Occlusion check for interactive elements ──\n if (inter && isOccluded(el)) {\n // Still include but mark as occluded\n // (agent needs to know element exists but may need to scroll/close modal)\n }\n\n const a = getAttrs(el);\n const scrollInfo = getScrollInfo(el);\n const inputHint = inter ? getInputHint(el) : '';\n\n // Leaf text extraction\n let leafText = '';\n if (el.childNodes.length === 1 && el.childNodes[0].nodeType === 3) {\n const t = el.childNodes[0].textContent.trim();\n if (t) leafText = t.length > MAX_TEXT ? t.slice(0, MAX_TEXT) + '...' : t;\n }\n\n // ── Stage 5: Iframe ──\n if (tag === 'iframe') {\n const iframeContent = getIframeContent(el, depth + 1, maxDepth);\n if (iframeContent) {\n return indent + prefix + '<iframe' + a + '>\\\\n' + iframeContent;\n }\n return '';\n }\n\n // Build output\n let out = '';\n\n if (skipSelf) {\n // Skip self but render children\n for (const c of el.childNodes) out += walkNode(c, depth, maxDepth);\n out += getShadowContent(el, depth, maxDepth);\n return out;\n }\n\n if (inter || leafText || el.children.length === 0) {\n if (leafText) {\n out = indent + prefix + '<' + tag + a + scrollInfo + inputHint + '>' + leafText + '</' + tag + '>\\\\n';\n } else {\n out = indent + prefix + '<' + tag + a + scrollInfo + inputHint + '>\\\\n';\n for (const c of el.childNodes) out += walkNode(c, depth + 1, maxDepth);\n out += getShadowContent(el, depth + 1, maxDepth);\n }\n } else {\n // Non-interactive container — flatten depth if no useful info\n if (scrollInfo) {\n out = indent + '<' + tag + scrollInfo + '>\\\\n';\n for (const c of el.childNodes) out += walkNode(c, depth + 1, maxDepth);\n out += getShadowContent(el, depth + 1, maxDepth);\n } else {\n for (const c of el.childNodes) out += walkNode(c, depth, maxDepth);\n out += getShadowContent(el, depth, maxDepth);\n }\n }\n\n return out;\n }\n\n // ── Page-level scroll info header ──\n const scrollY = window.scrollY;\n const scrollMax = document.documentElement.scrollHeight - window.innerHeight;\n const scrollPct = scrollMax > 0 ? Math.round((scrollY / scrollMax) * 100) : 0;\n const vpW = window.innerWidth;\n const vpH = window.innerHeight;\n const pageH = document.documentElement.scrollHeight;\n\n let header = '';\n header += 'viewport: ' + vpW + 'x' + vpH + ' | page_height: ' + pageH + 'px';\n header += ' | scroll: ' + scrollPct + '%';\n if (scrollY > 50) header += ' (' + Math.round(scrollY) + 'px from top)';\n if (scrollMax - scrollY > 50) header += ' (' + Math.round(scrollMax - scrollY) + 'px more below)';\n header += '\\\\n---\\\\n';\n\n // Store current hashes for next diff comparison\n window.__lobster_prev_hashes = __currentHashes;\n\n return header + walkNode(document.body, 0, MAX_DEPTH);\n})()\n`;\n","/**\n * Semantic tree — W3C accessible name algorithm, XPath, listener detection.\n *\n * Based on Lightpanda's SemanticTree.zig approach:\n * - Accessible name: aria-labelledby → aria-label → alt → title → placeholder → text content\n * - XPath generation for element location\n * - Interactive classification: native, aria, contenteditable, listener, focusable\n * - Disabled state with fieldset inheritance\n * - Input value, option, checked state extraction\n */\nexport const SEMANTIC_TREE_SCRIPT = `\n(() => {\n const SKIP = new Set(['script','style','noscript','svg','head','meta','link','template']);\n\n const ROLE_MAP = {\n a: 'link', button: 'button', input: 'textbox', select: 'combobox',\n textarea: 'textbox', h1: 'heading', h2: 'heading', h3: 'heading',\n h4: 'heading', h5: 'heading', h6: 'heading', nav: 'navigation',\n main: 'main', header: 'banner', footer: 'contentinfo', aside: 'complementary',\n form: 'form', table: 'table', img: 'img', ul: 'list', ol: 'list', li: 'listitem',\n section: 'region', article: 'article', dialog: 'dialog', details: 'group',\n summary: 'button', progress: 'progressbar', meter: 'meter', output: 'status',\n label: 'label', legend: 'legend', fieldset: 'group', option: 'option',\n tr: 'row', td: 'cell', th: 'columnheader', caption: 'caption',\n };\n\n const INTERACTIVE_ROLES = new Set([\n 'button','link','textbox','checkbox','radio','combobox','listbox',\n 'menu','menuitem','tab','switch','slider','searchbox','spinbutton',\n 'option','menuitemcheckbox','menuitemradio','treeitem',\n ]);\n\n // ── W3C Accessible Name Algorithm (simplified) ──\n function getAccessibleName(el) {\n // 1. aria-labelledby (highest priority)\n const labelledBy = el.getAttribute('aria-labelledby');\n if (labelledBy) {\n const ids = labelledBy.split(/\\\\s+/);\n const parts = ids.map(id => {\n const ref = document.getElementById(id);\n return ref ? ref.textContent.trim() : '';\n }).filter(Boolean);\n if (parts.length > 0) return parts.join(' ').slice(0, 120);\n }\n\n // 2. aria-label\n const ariaLabel = el.getAttribute('aria-label');\n if (ariaLabel) return ariaLabel.slice(0, 120);\n\n // 3. alt (for images)\n const alt = el.getAttribute('alt');\n if (alt) return alt.slice(0, 120);\n\n // 4. title\n const title = el.getAttribute('title');\n if (title) return title.slice(0, 120);\n\n // 5. placeholder (for inputs)\n const placeholder = el.getAttribute('placeholder');\n if (placeholder) return placeholder.slice(0, 120);\n\n // 6. value (for buttons)\n if (el.tagName === 'INPUT' && (el.type === 'submit' || el.type === 'button')) {\n const val = el.getAttribute('value');\n if (val) return val.slice(0, 120);\n }\n\n // 7. Associated label\n if (el.id) {\n const label = document.querySelector('label[for=\"' + el.id + '\"]');\n if (label) return label.textContent.trim().slice(0, 120);\n }\n\n // 8. Direct text content (only for leaf-ish elements)\n if (el.children.length <= 2) {\n const text = el.textContent.trim();\n if (text && text.length < 120) return text;\n }\n\n return '';\n }\n\n // ── XPath generation ──\n function getXPath(el) {\n const parts = [];\n let current = el;\n while (current && current.nodeType === 1) {\n let index = 1;\n let sibling = current.previousElementSibling;\n while (sibling) {\n if (sibling.tagName === current.tagName) index++;\n sibling = sibling.previousElementSibling;\n }\n const tag = current.tagName.toLowerCase();\n parts.unshift(tag + '[' + index + ']');\n current = current.parentElement;\n }\n return '/' + parts.join('/');\n }\n\n // ── Interactivity classification ──\n function classifyInteractivity(el) {\n const types = [];\n const tag = el.tagName.toLowerCase();\n\n // Native\n if (['a','button','input','select','textarea','details','summary'].includes(tag)) {\n if (tag === 'a' && !el.href) {} // anchor without href is not interactive\n else if (tag === 'input' && el.type === 'hidden') {} // hidden inputs\n else types.push('native');\n }\n\n // ARIA role\n const role = el.getAttribute('role');\n if (role && INTERACTIVE_ROLES.has(role)) types.push('aria');\n\n // Contenteditable\n if (el.contentEditable === 'true') types.push('contenteditable');\n\n // Focusable\n if (el.tabIndex >= 0 && el.getAttribute('tabindex') !== null) types.push('focusable');\n\n // Event listeners (check onclick and common inline handlers)\n if (el.onclick || el.onmousedown || el.onkeydown || el.onkeypress ||\n el.getAttribute('onclick') || el.getAttribute('onmousedown')) {\n types.push('listener');\n }\n\n return types;\n }\n\n // ── Disabled state with fieldset inheritance ──\n function isDisabled(el) {\n if (el.disabled) return true;\n // Check fieldset disabled inheritance\n let parent = el.parentElement;\n while (parent) {\n if (parent.tagName === 'FIELDSET' && parent.disabled) {\n // Exception: elements inside the first legend child are NOT disabled\n const firstLegend = parent.querySelector(':scope > legend');\n if (firstLegend && firstLegend.contains(el)) return false;\n return true;\n }\n parent = parent.parentElement;\n }\n return false;\n }\n\n // ── Walk the DOM ──\n function walk(el, depth, maxDepth) {\n if (!el || depth > maxDepth) return '';\n\n if (el.nodeType === 3) {\n const t = el.textContent.trim();\n return t ? ' '.repeat(depth) + 'text \"' + t.slice(0, 100) + '\"\\\\n' : '';\n }\n\n if (el.nodeType !== 1) return '';\n const tag = el.tagName.toLowerCase();\n if (SKIP.has(tag)) return '';\n\n const style = getComputedStyle(el);\n if (style.display === 'none' || style.visibility === 'hidden') return '';\n\n const indent = ' '.repeat(depth);\n const role = el.getAttribute('role') || ROLE_MAP[tag] || '';\n const name = getAccessibleName(el);\n const interTypes = classifyInteractivity(el);\n const interactive = interTypes.length > 0;\n const disabled = interactive && isDisabled(el);\n\n let line = indent;\n line += role || tag;\n\n if (name) line += ' \"' + name.slice(0, 80) + '\"';\n\n if (interactive) {\n line += ' [' + interTypes.join(',') + ']';\n if (disabled) line += ' {disabled}';\n line += ' xpath=' + getXPath(el);\n }\n\n // Input state\n if (tag === 'input') {\n const type = el.type || 'text';\n line += ' type=' + type;\n if (type === 'checkbox' || type === 'radio') {\n line += el.checked ? ' [checked]' : ' [unchecked]';\n } else if (el.value) {\n line += ' value=\"' + el.value.slice(0, 50) + '\"';\n }\n }\n if (tag === 'textarea' && el.value) {\n line += ' value=\"' + el.value.slice(0, 50) + '\"';\n }\n if (tag === 'select') {\n const opts = Array.from(el.options || []).map(o => ({\n text: o.text.slice(0, 30),\n value: o.value,\n selected: o.selected,\n }));\n const selected = opts.find(o => o.selected);\n if (selected) line += ' selected=\"' + selected.text + '\"';\n if (opts.length <= 10) {\n line += ' options=[' + opts.map(o => o.text).join('|') + ']';\n }\n }\n\n line += '\\\\n';\n\n let out = line;\n for (const c of el.childNodes) {\n out += walk(c, depth + 1, maxDepth);\n }\n\n // Shadow DOM\n if (el.shadowRoot) {\n for (const c of el.shadowRoot.childNodes) {\n out += walk(c, depth + 1, maxDepth);\n }\n }\n\n return out;\n }\n\n return walk(document.body, 0, 20);\n})()\n`;\n","/**\n * DOM-to-Markdown converter — runs inside the browser.\n *\n * Full-featured conversion based on Lightpanda's markdown.zig:\n * - Table support with header separator rows\n * - URL resolution (relative → absolute)\n * - Nested ordered/unordered lists with proper indentation\n * - Character escaping for Markdown special chars\n * - Strikethrough, code blocks, blockquotes\n * - Smart anchor handling (inline vs block)\n * - Whitespace collapsing\n */\nexport const MARKDOWN_SCRIPT = `\n(() => {\n const SKIP = new Set(['script','style','noscript','svg','head','template']);\n const baseUrl = location.href;\n\n // Resolve relative URLs to absolute\n function resolveUrl(href) {\n if (!href || href.startsWith('javascript:') || href.startsWith('#')) return href;\n try { return new URL(href, baseUrl).href; } catch { return href; }\n }\n\n // Escape Markdown special chars in text\n function escapeText(text) {\n return text\n .replace(/\\\\\\\\/g, '\\\\\\\\\\\\\\\\')\n .replace(/([*_~\\`\\\\[\\\\]|])/g, '\\\\\\\\$1');\n }\n\n // State tracking\n let listDepth = 0;\n let orderedCounters = [];\n let inPre = false;\n let inTable = false;\n\n function listIndent() { return ' '.repeat(listDepth); }\n\n function walk(el) {\n if (!el) return '';\n\n // Text node\n if (el.nodeType === 3) {\n const text = el.textContent || '';\n if (inPre) return text;\n // Collapse whitespace\n const collapsed = text.replace(/\\\\s+/g, ' ');\n return collapsed === ' ' && !el.previousSibling && !el.nextSibling ? '' : collapsed;\n }\n\n if (el.nodeType !== 1) return '';\n const tag = el.tagName.toLowerCase();\n if (SKIP.has(tag)) return '';\n\n // Visibility check\n try {\n const s = getComputedStyle(el);\n if (s.display === 'none' || s.visibility === 'hidden') return '';\n } catch {}\n\n // Get children content\n function childContent() {\n let out = '';\n for (const c of el.childNodes) out += walk(c);\n return out;\n }\n\n switch (tag) {\n // ── Headings ──\n case 'h1': return '\\\\n\\\\n# ' + childContent().trim() + '\\\\n\\\\n';\n case 'h2': return '\\\\n\\\\n## ' + childContent().trim() + '\\\\n\\\\n';\n case 'h3': return '\\\\n\\\\n### ' + childContent().trim() + '\\\\n\\\\n';\n case 'h4': return '\\\\n\\\\n#### ' + childContent().trim() + '\\\\n\\\\n';\n case 'h5': return '\\\\n\\\\n##### ' + childContent().trim() + '\\\\n\\\\n';\n case 'h6': return '\\\\n\\\\n###### ' + childContent().trim() + '\\\\n\\\\n';\n\n // ── Block elements ──\n case 'p': return '\\\\n\\\\n' + childContent().trim() + '\\\\n\\\\n';\n case 'br': return '\\\\n';\n case 'hr': return '\\\\n\\\\n---\\\\n\\\\n';\n\n // ── Inline formatting ──\n case 'strong': case 'b': {\n const inner = childContent().trim();\n return inner ? '**' + inner + '**' : '';\n }\n case 'em': case 'i': {\n const inner = childContent().trim();\n return inner ? '*' + inner + '*' : '';\n }\n case 's': case 'del': case 'strike': {\n const inner = childContent().trim();\n return inner ? '~~' + inner + '~~' : '';\n }\n case 'code': {\n if (inPre) return childContent();\n const inner = childContent();\n return inner ? '\\\\x60' + inner + '\\\\x60' : '';\n }\n\n // ── Code blocks ──\n case 'pre': {\n inPre = true;\n const inner = childContent();\n inPre = false;\n const lang = el.querySelector('code')?.className?.match(/language-(\\\\w+)/)?.[1] || '';\n return '\\\\n\\\\n\\\\x60\\\\x60\\\\x60' + lang + '\\\\n' + inner.trim() + '\\\\n\\\\x60\\\\x60\\\\x60\\\\n\\\\n';\n }\n\n // ── Links ──\n case 'a': {\n const href = resolveUrl(el.getAttribute('href') || '');\n const inner = childContent().trim();\n const name = inner || el.getAttribute('aria-label') || el.getAttribute('title') || '';\n if (!name) return '';\n if (!href || href === '#' || href.startsWith('javascript:')) return name;\n return '[' + name + '](' + href + ')';\n }\n\n // ── Images ──\n case 'img': {\n const alt = el.getAttribute('alt') || '';\n const src = resolveUrl(el.getAttribute('src') || '');\n return src ? '' : '';\n }\n\n // ── Lists ──\n case 'ul': {\n listDepth++;\n orderedCounters.push(0);\n const inner = childContent();\n listDepth--;\n orderedCounters.pop();\n return '\\\\n' + inner;\n }\n case 'ol': {\n listDepth++;\n orderedCounters.push(0);\n const inner = childContent();\n listDepth--;\n orderedCounters.pop();\n return '\\\\n' + inner;\n }\n case 'li': {\n const parent = el.parentElement?.tagName?.toLowerCase();\n const isOrdered = parent === 'ol';\n const inner = childContent().trim();\n if (!inner) return '';\n if (isOrdered) {\n const counter = orderedCounters.length > 0\n ? ++orderedCounters[orderedCounters.length - 1] : 1;\n return listIndent() + counter + '. ' + inner + '\\\\n';\n }\n return listIndent() + '- ' + inner + '\\\\n';\n }\n\n // ── Blockquote ──\n case 'blockquote': {\n const inner = childContent().trim();\n if (!inner) return '';\n return '\\\\n\\\\n' + inner.split('\\\\n').map(line => '> ' + line).join('\\\\n') + '\\\\n\\\\n';\n }\n\n // ── Tables ──\n case 'table': {\n inTable = true;\n let out = '\\\\n\\\\n';\n const rows = el.querySelectorAll('tr');\n let headerDone = false;\n\n for (let i = 0; i < rows.length; i++) {\n const cells = rows[i].querySelectorAll('th, td');\n const isHeader = rows[i].querySelector('th') !== null;\n const cellTexts = [];\n for (const cell of cells) {\n let cellText = '';\n for (const c of cell.childNodes) cellText += walk(c);\n cellTexts.push(cellText.trim().replace(/\\\\|/g, '\\\\\\\\|').replace(/\\\\n/g, ' '));\n }\n\n out += '| ' + cellTexts.join(' | ') + ' |\\\\n';\n\n if (isHeader && !headerDone) {\n out += '| ' + cellTexts.map(() => '---').join(' | ') + ' |\\\\n';\n headerDone = true;\n }\n\n // First data row without headers — synthesize separator\n if (i === 0 && !isHeader && !headerDone) {\n out += '| ' + cellTexts.map(() => '---').join(' | ') + ' |\\\\n';\n headerDone = true;\n }\n }\n\n inTable = false;\n return out + '\\\\n';\n }\n case 'thead': case 'tbody': case 'tfoot':\n return childContent();\n case 'tr': case 'td': case 'th':\n // Handled by table walker above; fallback for orphaned elements\n return childContent();\n\n // ── Definition lists ──\n case 'dl': return '\\\\n\\\\n' + childContent() + '\\\\n\\\\n';\n case 'dt': return '\\\\n**' + childContent().trim() + '**\\\\n';\n case 'dd': return ': ' + childContent().trim() + '\\\\n';\n\n // ── Figure ──\n case 'figure': return '\\\\n\\\\n' + childContent().trim() + '\\\\n\\\\n';\n case 'figcaption': return '\\\\n*' + childContent().trim() + '*\\\\n';\n\n // ── Details/Summary ──\n case 'details': return '\\\\n\\\\n' + childContent() + '\\\\n\\\\n';\n case 'summary': return '**' + childContent().trim() + '**\\\\n\\\\n';\n\n // ── Generic blocks ──\n case 'div': case 'section': case 'article': case 'main': case 'aside':\n case 'header': case 'footer': case 'nav':\n return '\\\\n' + childContent() + '\\\\n';\n\n case 'span': case 'small': case 'sub': case 'sup': case 'abbr':\n case 'time': case 'mark': case 'cite': case 'q':\n return childContent();\n\n default:\n return childContent();\n }\n }\n\n const raw = walk(document.body);\n // Clean up: collapse 3+ newlines to 2, trim\n return raw.replace(/\\\\n{3,}/g, '\\\\n\\\\n').replace(/^\\\\n+|\\\\n+$/g, '').trim();\n})()\n`;\n","/**\n * Interactive element classification — identifies what's clickable/editable.\n * Based on Lightpanda's InteractivityType approach.\n */\nexport const INTERACTIVE_ELEMENTS_SCRIPT = `\n(() => {\n const results = [];\n\n function classify(el) {\n const tag = el.tagName.toLowerCase();\n const role = el.getAttribute('role');\n const types = [];\n\n // Native interactive\n if (['a', 'button', 'input', 'select', 'textarea', 'details', 'summary'].includes(tag)) {\n types.push('native');\n }\n\n // ARIA role interactive\n if (role && ['button', 'link', 'textbox', 'checkbox', 'radio', 'combobox', 'tab', 'switch', 'menuitem', 'slider'].includes(role)) {\n types.push('aria');\n }\n\n // Contenteditable\n if (el.contentEditable === 'true') types.push('contenteditable');\n\n // Focusable\n if (el.tabIndex >= 0 && el.getAttribute('tabindex') !== null) types.push('focusable');\n\n // Has click listener (approximate)\n if (el.onclick) types.push('listener');\n\n return types;\n }\n\n let idx = 0;\n const walker = document.createTreeWalker(document.body, NodeFilter.SHOW_ELEMENT);\n let node;\n while (node = walker.nextNode()) {\n const types = classify(node);\n if (types.length === 0) continue;\n\n const style = getComputedStyle(node);\n if (style.display === 'none' || style.visibility === 'hidden') continue;\n\n const rect = node.getBoundingClientRect();\n results.push({\n index: idx++,\n tag: node.tagName.toLowerCase(),\n role: node.getAttribute('role') || '',\n text: (node.textContent || '').trim().slice(0, 100),\n types,\n ariaLabel: node.getAttribute('aria-label') || '',\n rect: { x: rect.x, y: rect.y, width: rect.width, height: rect.height },\n });\n }\n\n return results;\n})()\n`;\n","/**\n * Form state extraction — runs inside the browser.\n *\n * Extracts all form fields (including orphan fields not in <form> tags),\n * their types, labels, values, required/disabled state.\n *\n * Based on OpenCLI's getFormStateJs() pattern.\n */\nexport const FORM_STATE_SCRIPT = `\n(() => {\n function extractField(el) {\n const tag = el.tagName.toLowerCase();\n const type = (el.getAttribute('type') || tag).toLowerCase();\n\n // Skip non-user-facing inputs\n if (['hidden', 'submit', 'button', 'reset', 'image'].includes(type)) return null;\n\n const name = el.name || el.id || '';\n\n // Find label via multiple strategies\n const label =\n el.getAttribute('aria-label') ||\n (el.id ? document.querySelector('label[for=\"' + el.id + '\"]')?.textContent?.trim() : null) ||\n el.closest('label')?.textContent?.trim() ||\n el.placeholder ||\n '';\n\n // Extract value based on type\n let value;\n if (tag === 'select') {\n const selected = el.options[el.selectedIndex];\n value = selected ? selected.textContent.trim() : '';\n } else if (type === 'checkbox' || type === 'radio') {\n value = el.checked;\n } else if (type === 'password') {\n value = el.value ? '••••' : '';\n } else if (el.isContentEditable) {\n value = el.textContent?.trim()?.slice(0, 200) || '';\n } else {\n value = el.value || '';\n }\n\n return {\n tag,\n type,\n name,\n label: label.slice(0, 80),\n value: typeof value === 'string' ? value.slice(0, 200) : value,\n required: !!el.required,\n disabled: !!el.disabled,\n ref: el.dataset?.ref || null,\n };\n }\n\n const result = { forms: [], orphanFields: [] };\n\n // Collect forms\n for (const form of document.forms) {\n const fields = [];\n for (const el of form.elements) {\n const field = extractField(el);\n if (field) fields.push(field);\n }\n result.forms.push({\n id: form.id || '',\n name: form.name || '',\n action: form.action || '',\n method: (form.method || 'get').toUpperCase(),\n fields,\n });\n }\n\n // Collect orphan fields (not in a <form>)\n const allInputs = document.querySelectorAll(\n 'input, textarea, select, [contenteditable=\"true\"]'\n );\n for (const el of allInputs) {\n if (!el.form) {\n const field = extractField(el);\n if (field) result.orphanFields.push(field);\n }\n }\n\n return result;\n})()\n`;\n"],"mappings":";AAMO,IAAM,mBAAmB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA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