rea-agents - v2.0.0
    Preparing search index...

    Function buildCallPath

    • Reconstruct bounded direct-callee paths from explicit analyze_function Evidence.

      Parameters

      • input: {
            functions: (
                | {
                    analysis_profile?: {
                        digest: string;
                        parameters: Record<string, JSONType>;
                        provider: { id: string; name: string; version: string };
                        provider_profile_schema_version: number;
                        schema_version: 1;
                    };
                    authority: | "shipped-artifact"
                    | "controlled-replay"
                    | "historical-reference"
                    | "external-service"
                    | "analyst-inference";
                    confidence: "observed"
                    | "derived"
                    | "inferred";
                    environment:
                        | {
                            architecture: string;
                            id: string;
                            isolation: "process"
                            | "none"
                            | "container"
                            | "virtual-machine";
                            platform: string;
                        }
                        | null;
                    evidence_id: string;
                    evidence_links: string[];
                    limitations: string[];
                    locations: (
                        | { address: string; kind: "address" }
                        | { end: string; kind: "address-range"; start: string }
                        | { kind: "artifact-path"; path: string }
                        | { kind: "file-offset"; offset: number }
                        | { end: number; kind: "file-offset-range"; start: number }
                    )[];
                    normalized_result: JSONType;
                    operation: string;
                    parameters: Record<string, JSONType>;
                    predicate_type: string;
                    provider: { id: string; name: string; version: string | null };
                    raw_result: JSONType;
                    schema_version: 2;
                    subject:
                        | {
                            architecture: "x86"
                            | "x86_64"
                            | "arm"
                            | "arm64"
                            | null;
                            digest: { sha256: string };
                            format:
                                | "unknown"
                                | "file"
                                | "directory"
                                | "javascript"
                                | "source-map"
                                | "plist"
                                | "entitlements"
                                | "dmg"
                                | "zip"
                                | "pkg"
                                | "asar"
                                | "javascript-bundle"
                                | "mach-o-universal"
                                | "mach-o"
                                | "elf"
                                | "pe"
                                | "hopper"
                                | "analysis-database"
                                | "ipa"
                                | "apk"
                                | "dex"
                                | "jvm-class"
                                | "webassembly"
                                | "android-manifest"
                                | "android-resources";
                            local_path: string;
                            name: string;
                        }
                        | null;
                }
                | {
                    analysis_profile?: {
                        digest: string;
                        parameters: Record<string, JSONType>;
                        provider: { id: string; name: string; version: string };
                        provider_profile_schema_version: number;
                        schema_version: 1;
                    };
                    authority: | "shipped-artifact"
                    | "controlled-replay"
                    | "historical-reference"
                    | "external-service"
                    | "analyst-inference";
                    confidence: "observed"
                    | "derived"
                    | "inferred";
                    environment:
                        | {
                            architecture: string;
                            id: string;
                            isolation: "process"
                            | "none"
                            | "container"
                            | "virtual-machine";
                            platform: string;
                        }
                        | null;
                    evidence_id: string;
                    evidence_links: string[];
                    limitations: string[];
                    locations: (
                        | { address: string; kind: "address" }
                        | { end: string; kind: "address-range"; start: string }
                        | { kind: "artifact-path"; path: string }
                        | { kind: "file-offset"; offset: number }
                        | { end: number; kind: "file-offset-range"; start: number }
                    )[];
                    normalized_result: JSONType;
                    operation: string;
                    parameters: Record<string, JSONType>;
                    predicate_type: string;
                    provider: { id: string; name: string; version: string | null };
                    raw_result: JSONType;
                    schema_version: 2;
                    subject:
                        | {
                            architecture: "x86"
                            | "x86_64"
                            | "arm"
                            | "arm64"
                            | null;
                            digest: { sha256: string };
                            format:
                                | "unknown"
                                | "file"
                                | "directory"
                                | "javascript"
                                | "source-map"
                                | "plist"
                                | "entitlements"
                                | "dmg"
                                | "zip"
                                | "pkg"
                                | "asar"
                                | "javascript-bundle"
                                | "mach-o-universal"
                                | "mach-o"
                                | "elf"
                                | "pe"
                                | "hopper"
                                | "analysis-database"
                                | "ipa"
                                | "apk"
                                | "dex"
                                | "jvm-class"
                                | "webassembly"
                                | "android-manifest"
                                | "android-resources";
                            local_path: string;
                            name: string;
                        }
                        | null;
                }[]
            )[];
            goal: { address: string };
            limit: number;
            max_depth: number;
            max_paths: number;
            offset: number;
            start: { address: string };
            unknown_registry_approved?: true;
        }

      Returns {
          evidence_links: string[];
          explored: { depth_reached: number; edges: number; nodes: number };
          goal: string;
          limitations: string[];
          paths: {
              items: {
                  edges: { evidence_links: string[]; source: string; target: string }[];
                  evidence_links: string[];
                  hops: number;
                  nodes: { address: string; evidence_links: string[]; name: string | null }[];
              }[];
              limit: number;
              lower_bound: number;
              next_offset: number
              | null;
              offset: number;
              returned: number;
              total: number | null;
              truncated: boolean;
          };
          search_scope: { exhaustive: boolean; max_depth: number; max_paths: number };
          shortest_hops: number | null;
          start: string;
          status: "unknown" | "truncated" | "found" | "not_found";
      }