Member Junction
    Preparing search index...

    The default engine: a thin ComputerUseEngine subclass that forwards each completed step to ComputerUseGoalRun.OnProgress. It runs the real loop, so it requires a controller model — bind MJComputerUseEngine via CdpRemoteBrowserSession.SetGoalEngineFactory in production for automatic vision-model selection through MJ metadata.

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    authHandler: AuthHandler
    browserAdapter: BaseBrowserAdapter
    cancelled: boolean

    Whether Stop() has been called — checked at the top of each step

    judge: BaseJudge
    navigationGuard: NavigationGuard
    OnProgress?: (progress: ComputerUseGoalProgress) => void

    Per-run progress hook.

    toolProvider: ToolProvider

    Methods

    • Parameters

      • message: string

      Returns void

    • Parameters

      • message: string
      • Optionalerror: unknown

      Returns void

    • Execute a complete Computer Use run.

      This is the main entry point. It:

      1. Initializes the browser adapter with config
      2. Sets up auth (global callback + per-domain bindings)
      3. Navigates to the start URL
      4. Runs the main step loop
      5. Closes the browser and returns results

      Never throws — all errors are caught and returned in ComputerUseResult.

      Parameters

      Returns Promise<ComputerUseResult>

    • Request cancellation of a running run. The engine checks this flag at the top of each step. Cancellation is cooperative — the current step will finish.

      Returns void