mirror of
https://github.com/morluto/rea.git
synced 2026-12-01 02:49:12 +00:00
* fix(ghidra): list compatible installed JDKs in doctor remediation * refactor(ghidra): derive doctor JDK candidates from installation admission Candidate discovery now consumes the installation's parsed Java requirement, its Java-side admission (bounds, 64-bit JDK, and the os.name/os.arch native directory), its bounded probe environment, and its PATH and Homebrew enumeration instead of re-deriving them. - Expose javaRequirement on the installation inspection; doctor read a field that did not exist, so discovery never ran. - Search only when configuration passed and the Java probe failed. - Enumerate macOS JavaVirtualMachines roots instead of running java_home, removing the unowned listing subprocess. - Add PATH launchers on every platform, including Windows java.exe. - Filter Homebrew formulae before selection and drop the fixed entry and probe caps; realpath deduplication bounds probes by distinct JDKs. - Propagate cancellation from aborted searches and failed probes. - Report candidates as structured compatible_jdks details. * refactor(ghidra): share installation discovery seams with JDK candidates * refactor(ghidra): name discovered JDKs as the Java remediation When doctor finds compatible JDKs, the remediation names them instead of appending them to the generic selection advice. Document the search and details.compatible_jdks. * refactor(ghidra): split installation inspection into owned modules GhidraInstallation.ts gathers installation facts; the judgments and helpers move to their owners: - GhidraInstallationChecks: configuration, version, headless, native decompiler, and Java checks and their remediation. - GhidraJavaSelection: JVM selection, probing, and Homebrew fallback, extracted from installationCoordinates, plus the Java helpers that JDK discovery shares. - GhidraNativePlatform: native directory tables, decompiler header assessment, and JVM os.name/os.arch mapping. - GhidraInstallationPathDiscovery: Ghidra launcher discovery on PATH. - GhidraExecutableHeaderProbe now lives with its producer. Java selection resolves the PATH launcher on every platform, so the installation records the absolute command it probed. JDK discovery then recognises it and does not launch the same Linux JVM twice. --------- Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>