rea-agents - v2.0.0
    Preparing search index...
    • Inventory one local artifact without extracting or mounting it.

      Parameters

      Returns Promise<
          {
              edges: {
                  items: {
                      child_artifact_id: string;
                      edge_id: string;
                      logical_path: string
                      | null;
                      occurrence_id: string;
                      ordinal: number;
                      parent_artifact_id: string;
                      producer:
                          | {
                              arguments: string[];
                              effects: ("read" | "write" | "mount")[];
                              executable_sha256: string | null;
                              exit_code: number | null;
                              tool: string;
                              tool_version: string | null;
                          }
                          | null;
                      relation: | "contains"
                      | "extracts"
                      | "slice-of"
                      | "embeds"
                      | "loads"
                      | "maps-source"
                      | "derived-from";
                  }[];
                  limit: number;
                  next_offset: number
                  | null;
                  offset: number;
                  total: number;
              };
              integrity_contradictions: {
                  contradiction_id: string;
                  declared_sha256: string;
                  entry_kind: "file"
                  | "slice";
                  limitations: string[];
                  logical_path: string;
                  observed_sha256: string;
                  occurrence_id: string;
                  parent_artifact_id: string;
                  provenance: "container-integrity-metadata-versus-observed-bytes";
                  trust: "observed-untrusted";
                  unpacked: boolean;
              }[];
              limitations: string[];
              limits: {
                  max_compression_ratio: number;
                  max_depth: number;
                  max_entries: number;
                  max_entry_bytes: number;
                  max_path_bytes: number;
                  max_total_bytes: number;
              };
              manifest: {
                  edge_count: number;
                  graph_sha256: string;
                  manifest_id: string;
                  node_count: number;
                  occurrence_count: number;
                  root_artifact_id: string;
                  root_format: | "unknown"
                  | "file"
                  | "directory"
                  | "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";
                  root_sha256: string;
                  schema_version: 1;
              };
              nodes: {
                  items: {
                      architecture: string
                      | null;
                      artifact_id: string;
                      content_state: "materialized" | "embedded" | "virtual";
                      executable: boolean;
                      format:
                          | "unknown"
                          | "file"
                          | "directory"
                          | "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";
                      kind: | "unknown"
                      | "executable"
                      | "container"
                      | "dynamic-library"
                      | "framework"
                      | "native-addon"
                      | "javascript"
                      | "source-map"
                      | "plist"
                      | "entitlements"
                      | "resource"
                      | "universal-slice"
                      | "package-metadata"
                      | "bytecode";
                      limitations: string[];
                      media_type: string
                      | null;
                      sha256: string;
                      size: number;
                  }[];
                  limit: number;
                  next_offset: number
                  | null;
                  offset: number;
                  total: number;
              };
              occurrences: {
                  items: {
                      artifact_id: string
                      | null;
                      compressed_size: number | null;
                      declared_size: number | null;
                      encrypted: boolean;
                      entry_kind: "file" | "slice" | "directory" | "symlink";
                      executable: boolean;
                      hash_status:
                          | "verified"
                          | "mismatched"
                          | "not-hashed-limit"
                          | "unavailable";
                      limitations: string[];
                      logical_path: string;
                      occurrence_id: string;
                      parent_occurrence_id: string
                      | null;
                      source_location: { length: number; offset: number } | null;
                  }[];
                  limit: number;
                  next_offset: number
                  | null;
                  offset: number;
                  total: number;
              };
              provenance: {
                  arguments: string[];
                  effects: ("read" | "write" | "mount")[];
                  executable_sha256: string | null;
                  exit_code: number | null;
                  tool: string;
                  tool_version: string | null;
              }[];
          },
      >