mirror of
https://github.com/morluto/rea.git
synced 2026-12-06 23:09:34 +00:00
* feat(desktop): record embedded managed resources and UniFFI export names The desktop scan now records a managed assembly's CLI Resources directory, read on its own so an image that backs only the CLI header prefix records nothing more than before, and searches a PE library's export directory (up to 256 KiB) for UniFFI scaffolding names, keeping the namespace its contract-version function names. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * feat(desktop): point resources, protobuf schemas and UniFFI engines at their readers inspect_desktop_application now proposes inspect_artifact for assemblies that embed manifest resources, counting localized satellite assemblies as one deferred group; recover_protobuf_descriptors for the release's own assemblies when Google.Protobuf ships with it; and inspect_uniffi_library for libraries with UniFFI exports. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * test(desktop): cover the reader probes and the extra resource facts Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * docs(desktop): describe the resource, protobuf and UniFFI probes Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * fix(desktop): find UniFFI exports through the shared export reader The scan read the export directory's declared range as text and searched it with a regular expression. Size does not bound the exported names, the range also holds padding and the DLL name, and the expression backtracked on repeated prefixes. The scan now reads the names with the export parser inspect_native_exports uses, through the desktop's budgeted reader, and matches each name with fixed prefix and suffix checks. Libraries above 8,192 names or 256 KiB of export data, and malformed export directories, are skipped. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * fix(desktop): classify resource and UniFFI facts once and keep ownership first The fact classifier now records manifest resources and UniFFI exports, so its switch covers every fact kind. Managed probes come from one loop: assemblies the release names as its own keep all their probes, satellite assemblies are deferred for both operations, and an assembly's probes stay together. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * test(desktop): cover unmarked libraries and satellite deferral Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * docs(desktop): state the UniFFI export scan bounds and ownership precedence Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * fix(desktop): yield and honour cancellation during the UniFFI export scan The scan passed the export parser a pause that never yielded, and reads served from cached blocks skipped the cancellation check. It now takes the caller's pause, which yields to the event loop and checks the scan's abort signal, at the parser's checkpoints and after every 64 reads. Bytes served from cache are capped at 4 MiB, so repeated name pointers into the same blocks end the scan instead of running unbounded. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * test(desktop): cover the UniFFI export scan's namespace and propagation Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * test(desktop): list resource probes in the .NET ranking expectation Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> --------- Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>