/** * The complete Firefox tool registry: the 23 tools shared with Chrome (src/shared-tools.ts), the * 7 Firefox-only console/network/mock tools (src/bidi-tools.ts), the 3 lease tools * (src/leases-tools.ts), the 2 browser-scoped tools wait_for_download / grant_permissions * (src/bidi-browser-tools.ts, Firefox 160+), and extract_page (src/tools/extract.ts), which is * backend-neutral by construction (its page work runs entirely through Driver.evaluate). This is * what src/neutral.ts used to be; it now composes five files instead of reimplementing everything in one. */ import type { BrowserDriver } from "./driver.ts"; import type { ToolName } from "./index.ts"; import { SHARED_TOOLS } from "./shared-tools.ts"; import { BIDI_ONLY_TOOLS } from "./bidi-tools.ts"; import { LEASE_TOOLS } from "./leases-tools.ts"; import { BIDI_BROWSER_TOOLS } from "./bidi-browser-tools.ts"; import { extractPage } from "./tools/extract.ts"; export const FIREFOX_TOOLS: Partial Promise>> = { ...SHARED_TOOLS, ...BIDI_ONLY_TOOLS, ...LEASE_TOOLS, ...BIDI_BROWSER_TOOLS, extract_page: extractPage, };