* feat(setup): discover project-scoped MCP registrations in doctor and uninstall
* fix(setup): preserve OpenCode layer fields, user launcher provenance, and user fallback
* fix(setup): restore working directory in tests and refine replacement and launcher provenance
* fix(setup): bound OpenCode discovery to worktree and enforce Pi project trust
* fix(setup): preserve Pi project trust failures in doctor and prevent skipping project registrations in uninstall
* fix(setup): defer cross-setting environment validation and decouple OpenCode launcher ownership
* fix(setup): separate OpenCode readiness schema from launcher ownership and fix cross-setting test
* fix(doctor): include project remediation when disabled project registration inherits outdated user launcher
* fix(setup): scope status properties to project-scoped registrations
Omit scope and launcher_scope when no project-level configuration was discovered or evaluated, ensuring user-level registrations retain their exact unextended status contract in isolated environments without project files.
* fix(setup): prevent activating unowned launchers during uninstall and align array normalization
Prevent activating unowned or foreign launchers hidden in lower-precedence configurations during project-scoped uninstall, normalize array command arguments uniformly in OpenCode ownership parsing without appending separate args, and clarify field inheritance in client configuration documentation.
* fix(setup): check effective remaining launcher on uninstall and preserve cleanup failure
* fix(uninstall): preserve user configuration path in project client to check fallback ownership
* fix(uninstall): scope fallback configuration paths only to project-scoped clients
* fix(doctor): validate effective merged Pi flags and preserve MSIX selection during uninstall
* fix(uninstall): preserve surviving OpenCode project registrations across complete configuration layers
* fix(uninstall): require surviving OpenCode server to carry a launcher when checking layered activation
* fix(uninstall): rely on full layered check for OpenCode instead of lower-only fallback
* fix(doctor): preserve source paths for inherited environment failures
When a trusted Pi project partial override or an OpenCode project registration inherits an invalid REA environment value from user configuration (or an ancestor configuration), attribute the resulting doctor invalid registration error to the contributing configuration source rather than the winning project file. Preserves source evidence provenance across merged configuration layers so doctor remediation points the user to the file that actually requires repair.
* test(doctor): exercise effective cross-setting merge failure in inherited environment tests
Replace scalar validation errors with cross-setting constraints (REA_GHIDRA_PROGRAM_NAME without REA_GHIDRA_PROJECT_PATH) in inherited environment regression tests so individual fragments pass and the failure is only triggered during effective layer merge, directly protecting contributingEnvironmentSource provenance lookup.
* fix(uninstall): allow cleaning up owned entries in untrusted Pi projects
Evaluate Pi project trust in unownedLowerLayerFallback so owned entries in untrusted Pi projects can be cleanly removed without falsely claiming that removal would activate an unowned user launcher.
* fix(uninstall): require confirmed untrusted decision to skip Pi fallback check
Only skip the unowned lower-layer fallback check when Pi project trust is confirmed untrusted (trust.ok && !trust.value). When Pi trust reading or parsing fails (!trust.ok), preserve the unresolved state and conservatively inspect the lower layer so that an unowned user launcher is not inadvertently exposed if the project was trusted.
* fix(doctor): track activation provenance across layers and normalize platform path identity
- Track activation source provenance (activationScope, activationConfigPath) across Pi and OpenCode configuration layers so activation drift remediation points to the exact file contributing the disable/enable flag rather than nearest fragment.
- Normalize path identity case-insensitively on Windows and macOS when deduplicating user configuration from OpenCode hierarchy and Pi project candidates.
- Qualify Pi project registration docs with trusted projects prerequisite and fallback semantics.
* fix(doctor): isolate platform casing tests and restore cwd mocks
* fix(doctor): use filesystem identity for path normalization and verify present files in case tests
* fix(doctor): preserve inherited schema provenance and include activation in project package remediation
* fix(doctor): report the contributing registration and activation sources
* test(doctor): exercise combined Pi activation and launcher repairs
* fix(doctor): honor OpenCode activation by config dialect
* fix(doctor): share project registration activation and provenance
* fix(setup): plan project removals before writes and isolate provider probes
* fix(doctor): preserve OpenCode registration and launcher provenance
* fix(doctor): use shared registration error and path provenance
* fix(doctor): gate desktop probes on registration authority
* fix(uninstall): skip absent project configuration candidates
* fix(uninstall): compare effective project registration before removal
* fix(doctor): guide project package launcher migration
* test(doctor): verify OpenCode project launcher migration advice
* fix(uninstall): separate project load order from write targets
* fix(doctor): preserve OpenCode directory alias precedence
* fix(uninstall): preserve unchanged remote project registrations
---------
Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
* feat(config): persist provider settings in a user config file
Providers currently rediscover install paths from scratch in every
process, so a path set once (for example GHIDRA_INSTALL_DIR) silently
reverts on the next run. Introduce ~/.config/rea/rea.json as the
user-owned persistence layer and merge it into the environment
snapshot before configuration parsing, keeping env > config file >
auto-detect precedence on both the CLI and MCP entry points.
Add a rea config command (list/get/set/unset) as the write surface,
reporting the effective value and where it came from.
* fix(config): address review findings on persistence safety and CLI surface
- stage config writes beside the file and rename into place so an
interrupted write cannot leave partial JSON (greptile #4, codex #11)
- convert unreadable config files into configuration errors on the CLI
seam instead of escaping raw filesystem errors (greptile #5, codex #15)
- keep injected runtimes without a config root isolated from the host
account's rea.json (codex #18)
- surface the config file error on stderr when doctor falls back to the
raw environment (greptile #3, codex #16)
- route the config command through logCliCommand and return documents so
--json stays parseable and failures exit non-zero (greptile #2,
codex #10)
- reject empty --set values, unknown --set/--unset/--get names, and --get
combined with mutations (greptile #1/#7, codex #9/#12/#13/#17)
- cover the new behavior in the boundary tests and stop leaking one
temporary home per run (greptile #8)
* fix(config): validate and back up persisted provider settings
* fix(config): keep saved provider defaults out of client registrations
* fix(config): preserve provider discovery and budgets for saved settings
* fix(config): check only settings needed by the IDA deadline lookup
* fix(config): share effective provider settings and verify config file reads
* fix(doctor): share selected settings with Hopper and ILSpy probes
* fix(config): resolve the destination of first-time saves
* fix(doctor): preserve unresolved provider location inputs
* fix(doctor): honor inherited IDA deadline overrides
* fix(config): show empty environment overrides
* fix(setup): preserve client-selected saved configuration roots
---------
Co-authored-by: Jackzigen <zigenhan@gmail.com>
Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
* fix(setup): register aube's bin shim instead of its versioned store path
mise's npm backend installs with aube, whose bin is a shell shim that runs
the script inside one version's store directory. Setup registered that
versioned script, which the next upgrade removes from under the agents.
Setup now registers the shim when it proves, from the shim's own header,
that it runs this exact entrypoint, and registration identity accepts that
shim as REA's own.
Refs #4847
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(setup): move aube store registrations to the shim and follow links to it
Status now reports a direct registration as stale when the running
entrypoint has an aube bin shim and the registration is not that shim, so
doctor and setup move registrations written before this fix. A link to a
shim resolves the target from the shim's real directory, as the shim does.
The shim check runs only when the exact-path check does not already own the
command, applies on every platform (the header alone decides), and a failed
close no longer escapes classification. The test now lays out versions the
way mise does, with `latest` as a symlink.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(setup): launch managed shims without client PATH dependencies
* fix(setup): bind Node for installed Aube shims without a sidecar
* fix(setup): keep an independent Node fallback for Aube shims
* fix(setup): preserve independent Node aliases across upgrades
* fix(setup): reuse verified Node for host-bound Aube shims
* fix(setup): keep Aube registrations across shim format changes
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>