mirror of
https://github.com/morluto/rea.git
synced 2026-12-02 11:33:10 +00:00
* fix(javascript): refuse directories without JavaScript inputs and name directory-capable operations `analyze <dir>` routed every non-bundle directory to the static JavaScript lane, which reported an all-zero Electron summary as success for native build output. The JavaScript lane now owns that applicability decision from its complete inventory: when coverage is complete and no JavaScript, HTML, package.json, source map, or nested ASAR input exists, it returns a typed unsupported_target refusal naming inspect_desktop_application, audit_release_exposure, inspect_artifact, and open_binary. Incomplete coverage or unavailable files of unknown kind stay unknown and proceed. The directory_requires_file refusal no longer claims to come from open_binary when another operation (inspect, inspect-artifact) admitted the target, and it names the directory-capable operations instead of only the JavaScript lane. * fix(javascript): keep empty directories analyzable and report routing facts for non-JavaScript ones Owner decision on #14186: an empty directory is "nothing to analyze", not "unsupported". The JavaScript lane now classifies application-input presence once, in the domain owner of its file facts (javaScriptApplicationInputPresence): present, empty, absent, or unknown. - empty (complete traversal, no non-directory entries): analysis succeeds as before and the graph carries an explicit "No JavaScript inputs were found" limitation naming the next operations. - absent (complete traversal, entries but no JavaScript, HTML, package.json, source map, or nested ASAR): the typed unsupported_target refusal now carries bounded diagnostics from the inventory the lane already read: inventoried_entries, entries_by_format, json_files and native_addon_files. No paths are retained. - unknown (incomplete traversal or unavailable file of unknown kind) and present: unchanged analysis. Reverts the fixture edits that added package.json to empty directories.