/** * "The OS said no" and "I could not ask the OS" are DIFFERENT answers, and this * module exists so no caller has to remember that on its own. It is the command * half of what doctor/checks/presence.ts is for the filesystem, and it exists for * the same reason: the single-valued shape underneath both is a machine for * rounding "could not check" down to whichever neighbour happens to be * convenient. * * The shape it replaces is `installed-version.ts`'s `runCapture`, which returns * `""` for a spawn failure, a non-zero exit, a timeout, an AppLocker or * ConstrainedLanguage block, an access error, AND for a command that ran fine * and printed nothing. Every wrong direction has already been shipped on the * strength of that one value: * * - `reg.exe` that never ran was reported as "no AI Commander value under * HKCU\…\Run, which is normal"; * - `launchctl print system/