Files
reverse-engineering-anything/tests
Beqa 4b19f283d3 fix(setup): own REA scripts when the registered Node path is gone (#15281)
* fix(setup): own REA scripts when the registered Node path is gone

When a saved node/script/mcp launcher pointed at a missing interpreter,
ownership stayed unknown and setup refused to refresh after nvm/fnm moved
Node. Check the script whenever a current entrypoint is available, not only
when the interpreter path still resolves as a foreign binary.

Fixes #15024

* fix(setup): own vanished Node only for verified rea-agents scripts

Narrow the missing-interpreter path: keep a disappeared runtime unknown
unless its basename is node/bun and the script verifies as an installed
rea-agents package. Preserve the existing foreign-runtime script check
and the maintainer invariant that a matching non-package script stays
unknown after the executable vanishes.

Merge upstream/main for ownedPackageCommand OpenCode fixtures.
2026-12-01 02:57:17 +08:00
..