Member Junction
    Preparing search index...

    The minimal Hyperbrowser service surface the import('./hyperbrowser-remote-browser').HyperbrowserRemoteBrowser depends on. Production binds this to the real @hyperbrowser/sdk; tests inject a FakeHyperbrowserClient.

    interface IHyperbrowserClient {
        CreateSession(
            options: HyperbrowserCreateSessionOptions,
        ): Promise<HyperbrowserCreateSessionResult>;
        RunAgentTask(
            sessionId: string,
            intent: string,
        ): Promise<HyperbrowserAgentTaskResult>;
        StopSession(sessionId: string): Promise<void>;
    }
    Index

    Methods

    • Delegates a high-level natural-language intent to Hyperbrowser's first-party agentic harness, which runs its own model loop against the live session.

      Parameters

      • sessionId: string

        The Hyperbrowser session id the task runs against.

      • intent: string

        The natural-language intent (e.g. 'log in with the test account').

      Returns Promise<HyperbrowserAgentTaskResult>

      The platform-native task result the driver maps onto a RemoteBrowserActionResult.

    • Stops a Hyperbrowser session and releases the browser behind it. Should be idempotent and non-throwing for an already-stopped session, so teardown is safe to run more than once.

      Parameters

      • sessionId: string

        The Hyperbrowser session id returned by CreateSession.

      Returns Promise<void>