OptionalAgentOptional parent agent-run id the session sets before Run (MJ-aware engines link prompt runs to it).
OptionalAgentOptional parent agent-run-step id the session sets before Run (MJ-aware engines nest child prompt steps under it).
OptionalContextOptional MJ user the session sets before Run. An MJ-aware engine
(MJComputerUseEngine) runs its controller/judge prompts under this user; the default base engine
ignores it.
OptionalOnOptional per-step progress hook the session sets before Run.
Run the goal loop to completion.
Inject the live, CDP-attached adapter the loop should drive.
Cooperatively stop the loop (barge-in).
The minimal surface import('./cdp-remote-browser-session').CdpRemoteBrowserSession needs from a computer-use engine. Satisfied by
ComputerUseEngine(and itsMJComputerUseEnginesubclass); a fake implements it in tests.