Skip to content

armgit / moli

Public Imported from GitHub
0

Best headless browser for AI agents. Lite, Fast, High-Compatibility. Built in Rust

543 B
Raw Blame
from __future__ import annotations

import os
from pathlib import Path
from typing import Any

from .external_process import run_external_json_process


CRI_SCRIPT = Path(__file__).resolve().parents[1] / "chrome_remote_interface_smoke.cjs"


async def run_chrome_remote_interface_group(
    endpoint: str,
    fixture: str,
    results: list[dict[str, Any]],
) -> None:
    await run_external_json_process(
        "chrome-remote-interface",
        [os.environ.get("NODE", "node"), str(CRI_SCRIPT), endpoint, fixture],
        results,
    )