rea-agents
    Preparing search index...

    Interface GhidraStartupHandshakeOptions

    Inputs needed to complete the post-connection bridge handshake.

    interface GhidraStartupHandshakeOptions {
        cleanup: () => Promise<void>;
        deadline: ProviderStartupDeadline;
        failure: (
            kind: GhidraSessionFailureKind,
            message: string,
            cause?: unknown,
            options?: Pick<GhidraSessionErrorOptions, "timeoutMs" | "remoteCode">,
        ) => GhidraSessionError;
        parseSessionInfo: (
            value: JSONType,
        ) => Result<
            {
                analysis_complete: boolean;
                analysis_timed_out: boolean;
                bridge_version: 4;
                capabilities: (
                    | "analyze_function"
                    | "address_name"
                    | "list_documents"
                    | "list_names"
                    | "list_procedures"
                    | "list_segments"
                    | "list_strings"
                    | "procedure_address"
                    | "procedure_assembly"
                    | "procedure_callees"
                    | "procedure_callers"
                    | "procedure_info"
                    | "procedure_references"
                    | "procedure_pseudo_code"
                    | "resolve_containing_procedure"
                    | "search_procedures"
                    | "search_strings"
                    | "xrefs"
                    | "shutdown"
                    | "ping"
                )[];
                name: "REA Ghidra bridge";
                profile_digest: string;
                provider: { id: "ghidra"; version: string };
                read_only: true;
                run_id: string;
                target: {
                    compiler_spec_id: string;
                    default_address_space: string;
                    image_base: string;
                    language_id: string;
                    name: string;
                    sha256: string;
                };
            },
            GhidraSessionError,
        >;
        request: (
            method: string,
            params: JSONType,
            options: GhidraRequestOptions,
        ) => Promise<Result<JSONType, GhidraSessionError>>;
        startupTimeoutMs: number;
    }
    Index
    cleanup: () => Promise<void>
    failure: (
        kind: GhidraSessionFailureKind,
        message: string,
        cause?: unknown,
        options?: Pick<GhidraSessionErrorOptions, "timeoutMs" | "remoteCode">,
    ) => GhidraSessionError
    parseSessionInfo: (
        value: JSONType,
    ) => Result<
        {
            analysis_complete: boolean;
            analysis_timed_out: boolean;
            bridge_version: 4;
            capabilities: (
                | "analyze_function"
                | "address_name"
                | "list_documents"
                | "list_names"
                | "list_procedures"
                | "list_segments"
                | "list_strings"
                | "procedure_address"
                | "procedure_assembly"
                | "procedure_callees"
                | "procedure_callers"
                | "procedure_info"
                | "procedure_references"
                | "procedure_pseudo_code"
                | "resolve_containing_procedure"
                | "search_procedures"
                | "search_strings"
                | "xrefs"
                | "shutdown"
                | "ping"
            )[];
            name: "REA Ghidra bridge";
            profile_digest: string;
            provider: { id: "ghidra"; version: string };
            read_only: true;
            run_id: string;
            target: {
                compiler_spec_id: string;
                default_address_space: string;
                image_base: string;
                language_id: string;
                name: string;
                sha256: string;
            };
        },
        GhidraSessionError,
    >
    request: (
        method: string,
        params: JSONType,
        options: GhidraRequestOptions,
    ) => Promise<Result<JSONType, GhidraSessionError>>
    startupTimeoutMs: number