Skip to content

armgit / rea

Public Imported from GitHub
0

Reverse engineer anything with agents, from app behavior down to native binaries.

643 B
Raw Blame
import type { BrowserScenarioCapturePort } from "../application/BrowserScenarioCapturePort.js";
import { PlaywrightBrowserScenarioProvider } from "../browser/PlaywrightBrowserScenarioProvider.js";
import { PlaywrightScenarioSession } from "../browser/PlaywrightScenarioSession.js";

/** Construct a fresh provider without opening a target or acquiring an engine. */
export const createBrowserScenarioProvider = (
  environment: Readonly<Record<string, string | undefined>>,
): BrowserScenarioCapturePort =>
  new PlaywrightBrowserScenarioProvider((scenario, options) =>
    PlaywrightScenarioSession.open(scenario, environment, options),
  );