extract_uefi_firmware rows gained a required ffs_file, so extraction Evidence saved before that field failed to parse in retained views. The field is now optional when reading: the extractor still always records it, and an unrecorded owner matches no owner filter. UEFI view filters also capped each list at 64 values without a format, protocol or resource reason; overlapping filters cannot be split into separate requests without miscounting, so the cap is removed. MCP input-element admission still bounds every request.
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
Retained native-exports and elf-dependencies views matched only exact names, so counting the exports or imports in one namespace meant paging every row. Add name_prefixes to the exports collection and to every named elf-dependencies collection. A prefix filter combines with exact names, and coverage.total counts every match, so limit 1 returns a count. ELF export prefixes follow the exact-name identity rules: non-ASCII names compare their UTF-8 bytes, and names that are not valid UTF-8 never match. The tool descriptions now name the filter.
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
PE export rows reported only the preferred-base virtual address, which the parser derives from the export-address-table RVA. Callers asking for an RVA had to recover the image base through other tools. Each row now carries the RVA as the slot stores it; a forwarder's RVA locates its forwarder string.
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
An existing output directory was reported as an invalid path issue, which points callers at the firmware image instead of the directory they chose. Route destination refusals through outputDirectoryAdmissionRefusal, as firmware extraction already does.
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
A whole-image extraction of a 4 MiB OVMF image lists 560 files in about 553 KB of structured content, which exceeds client result limits. MCP extract_uefi_firmware now retains the complete manifest and returns its summary unless the caller passes detail complete. Targeted extractions fit in the summary's file preview. An optional view returns the first uefi-extraction page in the same call; later pages use inspect_analysis_view. The one-shot CLI command still returns complete Evidence.
BREAKING CHANGE: MCP callers that need every published file inline must pass detail: "complete" to extract_uefi_firmware.
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
Add the uefi-extraction view for extract_uefi_firmware Evidence. The summary returns file, byte, derivation and gap counts, source, media-type and gap-kind tallies, and a bounded preview of the first published files. Pages select files by exact media type, source and owning FFS GUID, name or type, in publication or size order, plus derivations and gaps by kind. Counts and the size order are built once per retained report.
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
Each published extraction file now names the FFS file whose body or section produced it, with its GUID, user-interface name, type and logical path. Decoded streams resolve through their carrier section. Callers no longer need to match output paths against a separate inspection to find which driver a file belongs to.
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
* perf(go): stream Go binary inspection over FileHandle for ELF, PE, and Mach-O
* fix(go): share parsing and bound positional string reads
* perf(go): reuse target reads under the scan budget
A complete map of a 4 MiB OVMF image is about 514 KB of structured content, which exceeds client result limits. MCP inspect_uefi_firmware now retains the complete map and returns its summary unless the caller passes detail complete. An optional view returns the first uefi-firmware page in the same call; later pages use inspect_analysis_view. The one-shot CLI command still returns complete Evidence.
BREAKING CHANGE: MCP callers that need every volume, file and section inline must pass detail: "complete" to inspect_uefi_firmware.
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
Add the uefi-firmware view for inspect_uefi_firmware Evidence. The summary returns volume, file and section counts with FFS type, section type and volume depth tallies. Pages select volumes, files, sections, unknown regions, integrity records and PSP tables or candidates. Files match exact GUIDs, user-interface names, type names and owning volume; sections match their owning file and type. Rows keep the original flattened index plus the offset and source stream that extraction targets.
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>