Member Junction
    Preparing search index...

    Class MJProgressComputerUseEngine

    The MJ-aware goal engine bound in production. Extends MJComputerUseEngine (prompt-runner routing, vision-model auto-selection, credential resolution, media persistence) and satisfies the ComputerUseGoalRun seam:

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    AgentRunID?: string

    Parent agent-run id the CDP session sets before Run (links the goal's prompt runs to it).

    AgentRunStepID?: string

    Parent agent-run-step id the CDP session sets before Run (nests child prompt steps under it).

    authHandler: AuthHandler
    browserAdapter: BaseBrowserAdapter
    cancelled: boolean

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

    ContextUser?: UserInfo

    The MJ user the goal run executes as; the CDP session sets it from the session's context user.

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

    Per-step progress hook the CDP session sets before Run (drives live narration).

    toolProvider: ToolProvider

    Accessors

    • get Provider(): IMetadataProvider

      Optional metadata provider override. Callers should set instance.Provider = providerToUse before invoking Run() in multi-provider contexts. Falls back to the global default provider when unset.

      Returns IMetadataProvider

    • set Provider(value: IMetadataProvider): void

      Parameters

      Returns void

    Methods

    • Parameters

      • message: string

      Returns void

    • Parameters

      • message: string
      • Optionalerror: unknown

      Returns void

    • Hook for run completion. Currently logs completion status. Can be extended to update agent run records or trigger post-run workflows.

      Parameters

      Returns void

    • 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