Member Junction
    Preparing search index...

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    authHandler: AuthHandler
    browserAdapter: BaseBrowserAdapter
    cancelled: boolean

    Whether Stop() has been called — checked at the top of each step and at the finer-grained checkpoints inside a step.

    judge: BaseJudge
    navigationGuard: NavigationGuard
    toolProvider: ToolProvider

    Accessors

    • get IsStopped(): boolean

      Whether the run has been stopped — by Stop or by its own expiry.

      Exposed because "the engine stopped waiting" and "the engine stopped working" are different things: a step blocked in a page call keeps running after the run is scored, and this is what says whether it has been told to unwind at its next cooperative checkpoint.

      Returns boolean

    Methods

    • Self-heal a diverged replay step. Only selector drift is healable here: re-resolve the recorded target's role+name against a fresh element list, with ambiguous cases escalating to the healTargetViaLLM seam and low-confidence matches failing rather than guessing. On a confident match, execute the corrected action, verify the postcondition, rewrite the trace step's selector in place, and return true.

      Flow drift (a failed postcondition) is not selector-healable and returns false, so the run falls back to the LLM tier.

      ReplayHeal: 'off' skips all of this — the step diverges as recorded. 'deterministic' keeps the role+name re-resolution but never asks a model.

      Parameters

      Returns Promise<boolean>

    • LLM heal disambiguation (leg 1b). Overrides the base no-op: when deterministic role+name re-resolution can't uniquely re-find a drifted target, ask the cheap "Computer Use - Heal" prompt which of the CURRENT indexed elements is the intended one, returning { index, confidence }. The caller's shouldAcceptHeal gate (0.6) decides whether to trust it — a low-confidence heal still fails the step rather than guessing.

      Fail-soft everywhere: no heal prompt in metadata, a failed/errored prompt run, or an unparseable response all return confidence 0 — heal then only succeeds on the deterministic path, exactly as before this override existed.

      NOTE: this AIPromptRunner routing mirrors the proven controller/judge path. It runs on the replay-with-heal tier, which the driver dispatch now reaches; the MJ Replay override primes healPromptEntity so this override is live rather than the base confidence-0 no-op. The response parser below is pure + tested.

      Parameters

      Returns Promise<{ confidence: number; index?: number }>

    • Parameters

      • message: string

      Returns void

    • Parameters

      • message: string
      • Optionalerror: unknown

      Returns void

    • Inject a pre-created browser adapter for shared session support. When set, the engine skips Launch()/Close() — the caller owns the lifecycle. Used by parallel test execution to share browser contexts across tests.

      Parameters

      Returns void

    • Inject a shared judge-verdict cache. When set, the engine reuses a cached verdict for an identical (goal, URL, visible-state) key instead of calling the LLM judge — the cross-attempt generalization of within-run gating. The driver owns the instance so verdicts survive attempt boundaries; unset → no cross-attempt caching (behavior unchanged).

      Parameters

      Returns void

    • Request cancellation of a running run. Cooperative: sets the flag the engine's checkpoints observe AND aborts the shared signal so in-flight LLM calls and settle/backoff delays return promptly. The run unwinds to a Cancelled result within seconds — at the next checkpoint — rather than running the current step to completion.

      Returns void

    • Parse the heal prompt's JSON { index, confidence } response. Pure + static so it is unit-testable without an engine. Tolerant: strips a fenced code block; a missing / non-integer / negative index or non-numeric confidence yields { confidence: 0 } (no disambiguation); confidence is clamped to [0, 1]. A confident heal MUST name an index.

      Parameters

      • raw: string

      Returns { confidence: number; index?: number }