mirror of
https://github.com/morluto/rea.git
synced 2026-12-06 18:23:08 +08:00
* feat(managed): decode .NET resource set headers and values Parse the ResourceManager and RuntimeResourceSet headers of a .resources stream, its name table and each entry's type code and payload range, as System.Resources.ResourceReader lays them out. Fixed-size primitives get a decoded value; strings, byte arrays and streams are payload ranges; serialized user types are named from the type table and never decoded. The test fixture writes resource sets the way ResourceWriter does, and its output is byte-identical to .NET Framework 4.8 ResourceWriter for the same values. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * feat(artifacts): bound .NET resource set admission Add the dotnet_resources reader limit group: the resource count follows the session member count, and the type count and header bytes bound what a reader holds before it reaches the data section. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * feat(artifacts): read .NET resource sets as members Serve each named resource of a .resources stream as a member whose bytes are one range of the set: a string's UTF-8 bytes, a byte array's or stream's payload, or a primitive's stored bytes with its decoded value in the entry metadata. Serialized objects are listed by type name. Names that are not safe paths, malformed values, hash table damage and version 1 sets are reported as limitations. Entry heads are read through windows of the data section in offset order, so a large set costs few reads. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * feat(artifacts): recognize .NET resource sets for inventory and extraction Claim a .resources stream by its 0xBEEFCACE magic and a usable ResourceManager header, open it as an archive target, and register the extractable dotnet-resources container so inspect_artifact, extract_artifact and inventory views reach its members. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * test(artifacts): cover .NET resource sets through the artifact provider Open a resource set as a target, inventory its members with value facts, extract payloads, and recover from a resource count limit. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * docs(managed): document .NET resource set inventory Describe how resource sets are recognized, what each member's bytes and metadata hold, which values stay unknown, extraction, and reader admission. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * docs(reference): list .NET resource set limits and compared metadata Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * docs(skill): route .NET resource sets to artifact inventory Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * refactor(managed): read resource set fields through BinaryReader Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * docs(skill): sync the Cursor plugin skill Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * test(artifacts): select the .NET resource count among explicit member counts Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * test(artifacts): resolve .NET resource limits from the member count setting Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * fix(managed): reject negative type codes and show Local dates as UTC instants A version 2 type code decoded as a negative Int32 is malformed, so the entry is omitted instead of failing the metadata schema. DateTime.ToBinary stores a Local value's UTC instant, so it is shown with a Z suffix like a Utc value. Name records are read without decoding, so callers can bound decoded names. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * feat(artifacts): bound retained .NET resource names Count every decoded name, including names several table entries share, against dotnet_resources.retained_name_bytes. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * fix(artifacts): bound shared resource names and keep neighbors' data ranges Entry data ranges now come from every record with a data offset, so an entry whose name does not decode no longer extends its neighbor. Decoded names are charged against retained_name_bytes; a set that exceeds it keeps the members read before the limit. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * fix(artifacts): inventory .NET resource names that collide as paths Resource names are flat keys, so a and a/b are distinct resources. Inventory lists both, as for PyInstaller, Bun and Deno members, and extraction still refuses to write colliding destinations together. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * docs(managed): describe resource name limits, flat keys and DateTime instants Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * refactor(managed): report resource set header failures through ParseFailureError The header parser now throws the shared parse failure with the format, offset and field: truncated with the available and required bytes, unsupported for a set version ResourceReader does not read, limit naming the exceeded artifact_limits.dotnet_resources field, and malformed otherwise. Name and value decoders take the caller's BinaryReader instead of allocating one per record, and the metadata schemas live in formatMetadata. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * fix(artifacts): report the full retained name requirement in bytes The retained name refusal now names every reference's bytes, which are known before decoding, so retrying with that value succeeds, and both byte allowances report the bytes unit. The reader maps shared parse failures, grows its header read on truncation inside the set, and holds one reader per name section and data window. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * ci: select the Apple artifact lane for .NET resource set changes Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * docs(cli): show .NET resource set inventory and extraction Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * docs(skill): describe .NET resource set members for agents Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> --------- Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>