refactor(lib): split install-lifecycle repair and inspect paths

executeRepairOperation, executeUninstallOperation, and inspectManagedOperation
now dispatch on operation kind to one small function per kind, with the
repeated uninstall result shapes and previous-content restore pulled into
helpers. executeRepairOperation takes an options object instead of four
trailing positionals. analyzeRecord is a sequence of collect* steps, and the
per-record repair closure inside repairInstalledStates hands off to
runRecordRepair with the legacy OpenCode, build-only dry run, and managed
repair paths as separate functions.

Result objects keep the same keys in the same order, and lock, build, and
require ordering is unchanged. Clears the max-params and complexity warnings
on this file.
This commit is contained in:
Affaan Mustafa
2026-10-19 22:18:32 -04:00
committed by Affaan Mustafa
parent 3849426a95
commit 1e787f62f5
File diff suppressed because it is too large Load Diff