pub fn parse_pack_or_array( json: &str, ) -> KimetsuResult<(PackRef, Vec<MemoryExport>)>
Parse a pack file body: a Pack envelope OR a bare Vec<MemoryExport> (back-compat with pre-pack exports). Returns the manifest PackRef (empty for a bare array) and the memory entries.
Pack
Vec<MemoryExport>
PackRef