electron-agent-bridge
    Preparing search index...
    interface ConnectOptions {
        capabilities?: readonly ("observe" | "interact" | "eval")[];
        client?: { name: string; version: string };
        directory?: string;
        handshakePath?: string;
        pid?: number;
        role?: "controller" | "observer";
        timeoutMs?: number;
    }
    Index
    capabilities?: readonly ("observe" | "interact" | "eval")[]

    Ask for fewer capabilities than the app allows (least privilege).

    client?: { name: string; version: string }

    Identifies the caller in the app's audit log.

    directory?: string

    Directory to search for handshakes; defaults to the per-user endpoint directory.

    handshakePath?: string

    Connect using this handshake file (Launch mode knows its path).

    pid?: number

    Connect to the app with this process id.

    role?: "controller" | "observer"

    observer never takes control; default controller (downgraded if another client controls).

    timeoutMs?: number